/** * Get a revision item * * When gettig revision number X, this method will transparently build the data from revision 1 to X and return * a complete row. This is done because revision X always contains just the changes from the previous revision, * so the rest needs to be built. * * @return Library\DatabaseRowInterface */ public function getRow() { if (!isset($this->_row)) { if ($this->getState()->revision > 1) { $this->_row = $this->getRevision(); } } return parent::getRow(); }
public function getRow() { return parent::getRow(); // TODO: Change the autogenerated stub }
/** * Method to get an object which represents a table row * * If the model state is unique a row is fetched from the database based on the state. If not, an empty row is be * returned instead. * * This method is customized in order to set the default module type on new rows. * * @return Library\DatabaseRow */ public function getRow() { if (!isset($this->_row)) { $this->_row = parent::getRow(); if ($this->_row->isNew()) { $state = $this->getState(); if ($state->application) { $this->_row->application = $state->application; } if ($state->extension) { $this->_row->extensions_extension_id = $state->extension; $this->_row->extension_name = $this->getObject('application.extensions')->find(array('id' => $state->extension))->top()->name; } } } return $this->_row; }