New reorder of classes and configuration. New instantiation of Tasks.

This commit is contained in:
Andrs Montaez
2011-11-23 01:17:06 -02:00
parent 3caa3d7313
commit b161220e69
23 changed files with 257 additions and 108 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
class Mage_Task_Factory
{
/**
*
*
* @param string $taskName
* @return Mage_Task_TaskAbstract
*/
public static function get($taskName)
{
$taskName = str_replace(' ', '_', ucwords(str_replace('/', ' ', $taskName)));
$className = 'Mage_Task_BuiltIn_' . $taskName;
return new $className;
}
}