Static Public Member Functions | |
static | convert ($class, $method, $data, array $vars=array()) |
Definition at line 35 of file Convert.php.
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 }