public function fromRow(array $vars)
 {
     if (!empty($vars['refund_dattm']) && $vars['refund_dattm'] == '0000-00-00 00:00:00') {
         $vars['refund_dattm'] = null;
     }
     return parent::fromRow($vars);
 }
Beispiel #2
0
 public function fromRow(array $arr)
 {
     // fields to decrypt
     foreach ($this->_encryptedFields as $f) {
         if (array_key_exists($f, $arr)) {
             $arr[$f] = $this->_table->decrypt($arr[$f]);
         }
     }
     return parent::fromRow($arr);
 }
Beispiel #3
0
 public function fromRow(array $vars)
 {
     if (isset($vars['childNodes'])) {
         foreach ($vars['childNodes'] as $row) {
             $r = new self($this->getTable());
             $r->fromRow($row);
             $this->_childNodes[] = $r;
         }
         unset($vars['childNodes']);
     }
     return parent::fromRow($vars);
 }
Beispiel #4
0
 /**
  * Set fields from array retreived from database.
  * If $this->_fields is a not-empty array, only these fields will be set
  *
  * @param array $vars
  * @return Am_Record provides fluent interface
  */
 public function fromRow(array $vars)
 {
     return parent::fromRow($this->getTable()->customFields()->valuesFromTable($vars));
 }
Beispiel #5
0
 function fromRow(array $vars)
 {
     $this->_isLoaded = true;
     return parent::fromRow($vars);
 }