Arquivos
wMind/mind3rd/API/programs/Info.php
T
Felipe Nascimento de Moura aa8e451a58 - Refactor of all the MindCommand class
- Rebuilt of all programs to use the pattern of the new format designed for the new MindCommand class
2011-04-15 23:32:55 -03:00

33 linhas
661 B
PHP
Arquivo Executável

<?php
use Symfony\Component\Console\Input\InputArgument,
Symfony\Component\Console\Input\InputOption,
Symfony\Component\Console;
/**
* Description of Info
*
* @author felipe
*/
class Info extends MindCommand implements program
{
public function __construct()
{
$this
->setCommandName('info')
->setDescription('Performs some tests on theWebMind')
->setRestrict(true)
->setAction('action')
->setHelp(<<<EOT
Executes specific tests and report their results, about the system itself
EOT
);
$this->init();
}
public function action()
{
GLOBAL $_MIND;
print_r($_MIND->about);
return $this;
}
}