note; $this->_id = (int) $data->id; $this->_createdDate = new Zend_Date($data->created); $this->_modifiedDate = new Zend_Date($data->modified); $this->_title = $data->title; $this->_text = $data->note; } /** * Returns the identifier for the note. * * @return int */ public function getId() { return $this->_id; } /** * Returns the creation date of the note. * * @return Zend_Date */ public function getCreatedDate() { return $this->_createdDate; } /** * Returns the last modification date of the note. * * @return Zend_Date */ public function getModifiedDate() { return $this->_modifiedDate; } /** * Returns the title of the note. * * @return string */ public function getTitle() { return $this->_title; } /** * Returns the text of the note. * * @return string */ public function getText() { return $this->_text; } }