array( 'desc' => 'which year you want to create', 'short' => 'c', 'default' => '', 'min' => 1, 'max' => 1, ) ); function getAuth() { $ff = HTML_FlexyFramework::get(); if (!empty($ff->cli)) { $this->cli = true; return true; } die("NOT ALLOWED"); } function get($args, $opts) { if(!empty($opts['create'])){ $period = DB_DataObject::factory('period'); $period->createPeriod($opts['create']); die("DONE!"); } die("Nothing to do, Missing parameters! \n"); } }