1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Added documentation.

This commit is contained in:
Jonathan.Wage 2007-10-15 21:22:31 +00:00
parent 37ffee975c
commit 9e9ab7fb33

View File

@ -36,11 +36,23 @@ class Doctrine_Cli
protected $scriptName = null; protected $scriptName = null;
protected $config = array(); protected $config = array();
/**
* __construct
*
* @param string $config
* @return void
*/
public function __construct($config = array()) public function __construct($config = array())
{ {
$this->config = $config; $this->config = $config;
} }
/**
* run
*
* @param string $args
* @return void
*/
public function run($args) public function run($args)
{ {
$this->scriptName = $args[0]; $this->scriptName = $args[0];
@ -71,6 +83,13 @@ class Doctrine_Cli
} }
} }
/**
* prepareArgs
*
* @param string $taskInstance
* @param string $args
* @return void
*/
protected function prepareArgs($taskInstance, $args) protected function prepareArgs($taskInstance, $args)
{ {
$args = array_values($args); $args = array_values($args);
@ -110,6 +129,11 @@ class Doctrine_Cli
return $prepared; return $prepared;
} }
/**
* printTasks
*
* @return void
*/
public function printTasks() public function printTasks()
{ {
$tasks = $this->loadTasks(); $tasks = $this->loadTasks();
@ -161,6 +185,12 @@ class Doctrine_Cli
} }
} }
/**
* loadTasks
*
* @param string $directory
* @return void
*/
public function loadTasks($directory = null) public function loadTasks($directory = null)
{ {
if ($directory === null) { if ($directory === null) {