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); }
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); }
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); }
/** * 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)); }
function fromRow(array $vars) { $this->_isLoaded = true; return parent::fromRow($vars); }