Ejemplo n.º 1
0
 public function __construct(\Zend_Console_Getopt $opts, $application)
 {
     set_error_handler(array('Logic_CmdError', 'captureNormal'), E_WARNING);
     try {
         $this->_logger = Zend_Registry::get('cron_log');
     } catch (Exception $e) {
         throw new Zend_Db_Table_Row_Exception('The logger "cron_log" for cron log is not set!', 0, $e);
     }
     parent::__construct($opts, $application);
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->create = $this->opts->create;
     if ($this->opts->action != 'statusAll' && (is_null($this->opts->branch) || $this->opts->branch == '')) {
         $this->tryToFindBranch();
     } else {
         $this->branch = $this->opts->branch;
     }
 }
Ejemplo n.º 3
0
 public function init()
 {
     ini_set('display_errors', 0);
     return parent::init();
 }