Ejemplo n.º 1
0
 /**
  * Adds a new task defined by it's name.
  * All other task functions will
  * remember the current task defined here.
  *
  * @param string $name name of the task, used in the command-line
  */
 public static function taskName ($name)
 {
     self::$currentTask = $name;
     self::$tasks[$name] = array (
         'name' => $name,
         'description' => null,
         'args' => array (),
         'function' => null,
         'opt' => array (
             'short' => '',
             'long' => array (),
             'descriptions' => array ()
         )
     );
 }