Static Public Member Functions | |
static | convert ($class, $method, $data, array $vars=array()) |
Definition at line 35 of file Convert.php.
Definition at line 38 of file Convert.php.
00039 { 00040 if (is_string($class)) { 00041 $class = new $class(); 00042 } 00043 $action = new Mage_Dataflow_Model_Convert_Action(); 00044 $action->setParam('method', $method)->setParam('class', $class); 00045 00046 $container = $action->getContainer(); 00047 $container->setData($data)->setVars($vars); 00048 00049 $action->run(); 00050 return $action->getData(); 00051 }