*/ class Commit extends MindCommand implements program { private $nameSpace= false; public $autoCommit= false; public function __construct() { $this->setCommandName('commit') ->setDescription('Commits the analyzed content to a new version') ->setRestrict(true) ->setAction('action') ->setHelp(<<init(); } public function action() { if(!isset($_SESSION['currentProject'])) { Mind::write('currentProjectRequired'); Mind::write('currentProjectRequiredTip'); return false; } MindProject::analyze(true, false); return $this; } }