DomCI : Update all the PHPDoc
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3279 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
23
cli.php
23
cli.php
@@ -7,12 +7,13 @@
|
||||
class cli
|
||||
{
|
||||
/** Run in CLI mode with parameters
|
||||
Example of cli code :
|
||||
#!/usr/bin/php5
|
||||
<?php
|
||||
require ("domframework/cli.php");
|
||||
$cli = new cli;
|
||||
$cli->run(); */
|
||||
* Example of cli code :
|
||||
* #!/usr/bin/php5
|
||||
* <?php
|
||||
* require ("domframework/cli.php");
|
||||
* $cli = new cli;
|
||||
* $cli->run();
|
||||
*/
|
||||
/** The expert mode allow to see/execute the models */
|
||||
private $EXPERT = false;
|
||||
|
||||
@@ -29,7 +30,12 @@ class cli
|
||||
set_error_handler(array(&$this, "cliErrorHandler"));
|
||||
}
|
||||
|
||||
/** The error handler for CLI : display error in STDERR */
|
||||
/** The error handler for CLI : display error in STDERR
|
||||
* @param integer $errno The error type
|
||||
* @param string $errstr The string to send in error
|
||||
* @param string $errfile The error file which generate the error
|
||||
* @param integer $errline The line with an error
|
||||
*/
|
||||
public function cliErrorHandler ($errno, $errstr, $errfile, $errline)
|
||||
{
|
||||
if (!(error_reporting() & $errno))
|
||||
@@ -66,7 +72,8 @@ class cli
|
||||
}
|
||||
}
|
||||
|
||||
/** The real application launcher and helpers */
|
||||
/** The real application launcher and helpers
|
||||
*/
|
||||
public function run ()
|
||||
{
|
||||
global $argv;
|
||||
|
||||
Reference in New Issue
Block a user