Varien_Convert Class Reference

List of all members.

Static Public Member Functions

static convert ($class, $method, $data, array $vars=array())


Detailed Description

Definition at line 35 of file Convert.php.


Member Function Documentation

static convert ( class,
method,
data,
array vars = array() 
) [static]

Definition at line 37 of file Convert.php.

00038     {
00039         if (is_string($class)) {
00040             $class = new $class();
00041         }
00042         $action = new Varien_Convert_Action();
00043         $action->setParam('method', $method)->setParam('class', $class);
00044         
00045         $container = $action->getContainer();
00046         $container->setData($data)->setVars($vars);
00047         
00048         $action->run();
00049         return $action->getData();
00050     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:57 2009 for Magento by  doxygen 1.5.8