/home/desid573/book.familycab.com.au/pdd/lib/Cake/Console
NameSizeModeActions
Command/-0755rm
Templates/-0755rm
cake14040644editdlrm
cake.bat10260644editdlrm
cake.php15840644editdlrm
ConsoleErrorHandler.php28910644editdlrm
ConsoleInput.php20430644editdlrm
ConsoleInputArgument.php41940644editdlrm
ConsoleInputOption.php54540644editdlrm
ConsoleInputSubcommand.php30600644editdlrm
ConsoleOptionParser.php204680644editdlrm
ConsoleOutput.php80680644editdlrm
HelpFormatter.php57060644editdlrm
Shell.php259600644editdlrm
ShellDispatcher.php102250644editdlrm
TaskCollection.php27670644editdlrm
Edit: /home/desid573/book.familycab.com.au/pdd/lib/Cake/Console/TaskCollection.php (2767B)
_Shell = $Shell; } /** * Loads/constructs a task. Will return the instance in the registry if it already exists. * * You can alias your task as an existing task by setting the 'className' key, i.e., * ``` * public $tasks = array( * 'DbConfig' => array( * 'className' => 'Bakeplus.DbConfigure' * ); * ); * ``` * All calls to the `DbConfig` task would use `DbConfigure` found in the `Bakeplus` plugin instead. * * @param string $task Task name to load * @param array $settings Settings for the task. * @return Task A task object, Either the existing loaded task or a new one. * @throws MissingTaskException when the task could not be found */ public function load($task, $settings = array()) { if (is_array($settings) && isset($settings['className'])) { $alias = $task; $task = $settings['className']; } list($plugin, $name) = pluginSplit($task, true); if (!isset($alias)) { $alias = $name; } if (isset($this->_loaded[$alias])) { return $this->_loaded[$alias]; } $taskClass = $name . 'Task'; App::uses($taskClass, $plugin . 'Console/Command/Task'); $exists = class_exists($taskClass); if (!$exists) { throw new MissingTaskException(array( 'class' => $taskClass, 'plugin' => substr($plugin, 0, -1) )); } $this->_loaded[$alias] = new $taskClass( $this->_Shell->stdout, $this->_Shell->stderr, $this->_Shell->stdin ); return $this->_loaded[$alias]; } }