コード例 #1
0
ファイル: Note.php プロジェクト: rahmanazhar/imperium
 /**
 	Note __construct
 
 	Creates note with Default Values
 */
 function __construct($x = null)
 {
     $this->_data['cts'] = date('Y-m-d');
     $this->_data['name'] = 'New Note';
     $this->_data['kind'] = 'Note';
     $this->_data['status'] = 'New';
     parent::__construct($x);
 }
コード例 #2
0
 /**
 	Imperium Functions
 */
 function __construct($x = null)
 {
     $this->_data['date'] = date('Y-m-d');
     $this->_data['a_quantity'] = 2;
     $this->_data['a_unit'] = 'hr';
     $this->_data['e_unit'] = 'hr';
     parent::__construct($x);
     if (empty($this->_data['time_alpha'])) {
         $this->_data['time_alpha'] = strftime('%H:%M', mktime(date('H') - 1, 0, 0));
         $this->_data['time_omega'] = strftime('%H:%M', mktime(date('H') + 1, 0, 0));
     }
 }