コード例 #1
0
ファイル: Test.php プロジェクト: AholibamaSI/plymouth-webapp
 /**
  *
  */
 public function __construct($row = null)
 {
     if ($row) {
         $row = \PSU::cleanKeys('sortest_', '', $row);
     }
     parent::__construct($row);
 }
コード例 #2
0
 /**
  *
  */
 public function __construct($row = null)
 {
     // is row actually a row identifier (unique key)?
     if ($row && !is_array($row)) {
         $row = static::row($row);
     }
     parent::__construct($row);
 }
コード例 #3
0
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     parent::__construct($row);
     $this->detail_desc = $this->detail_desc();
     $this->entry_date = $this->activity_date = date('Y-m-d H:i:s');
     $this->trans_date = $this->effective_date = date('Y-m-d');
     \PSU::add_filter('transaction_term_types', array(&$this, 'apply_to_terms'), 10, 2);
     \PSU::add_filter('transaction_term_skip', array(&$this, 'apply_skip_terms'), 10, 3);
 }
コード例 #4
0
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     if ($row) {
         // get rid of table name from field names
         $row = \PSU::cleanKeys('tbraccd_', '', $row);
     }
     //end if
     parent::__construct($row);
     $this->type_ind = $this->type_ind();
     $this->detail_desc = $this->detail_desc();
 }
コード例 #5
0
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     if ($row) {
         // get rid of table name from field names
         $row = \PSU::cleanKeys('gxrdird_', '', $row);
     }
     //end if
     parent::__construct($row);
     if (!isset($this->activity_date)) {
         $this->activity_date = date('Y-m-d H:i:s');
     }
     //end if
 }
コード例 #6
0
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     if ($row['meta']) {
         $meta = $row['meta'];
         unset($row['meta']);
     }
     //end if
     parent::__construct($row);
     foreach ((array) $meta as $key => $value) {
         $this->set_meta($key, $value);
     }
     //end foreach
     if (!$this->amount) {
         $this->amount = 0;
     }
     //end if
     $this->type_ind = $this->type_ind();
     $this->detail_desc = $this->detail_desc();
 }
コード例 #7
0
ファイル: Meta.php プロジェクト: AholibamaSI/plymouth-webapp
 /**
  * constructor
  *
  * @param $row array Array of row elements
  */
 public function __construct($row = null)
 {
     $row['id'] = $row['id'] ?: -1;
     parent::__construct($row);
 }