/** * Set properties for the entry associated with a comment. * This is usually just the bare minimum of properties needed to display a * link to the entry. This avoids retrieving all the entry data when only the * link needs to be displayed (since this query shows comments, not full * entries). * @param ENTRY $entry The entry whose properties should be set. * @access private */ protected function _prepare_entry($entry) { $entry->set_parent_folder($this->_folder); $entry->id = $this->db->f('entry_id'); }
/** * Perform any setup needed on each returned object. * @param ENTRY $obj * @access private */ protected function _prepare_object($obj) { $obj->set_parent_folder($this->_user->folder_at_id($this->db->f('folder_id'))); }
/** * Set properties for the entry associated with a comment. * This is usually just the bare minimum of properties needed to display a * link to the entry. This avoids retrieving all the entry data when only the * link needs to be displayed (since this query shows comments, not full * entries). * @param ENTRY $entry The entry whose properties should be set. * @access private */ protected function _prepare_entry($entry) { $db = $this->db; $entry->id = $db->f('entry_id'); $entry->title = $db->f('entry_title'); $entry->state = $db->f('entry_state'); $entry->set_parent_folder($this->_user->folder_at_id($this->db->f('folder_id'))); }