/** * Return all messages related with this message * * @access public * @param void * @return array */ function getMessages() { return ProjectMessages::findAll(array('conditions' => '`milestone_id` = ' . DB::escape($this->getId()), 'order' => 'created_on')); // findAll }
/** * Return all messages related with this message * * @access public * @param void * @return array */ function getMessages() { return ProjectMessages::findAll(array('conditions' => '`milestone_id` = ' . DB::escape($this->getId()) . " AND `trashed_on` = " . DB::escape(EMPTY_DATETIME) . " AND " . permissions_sql_for_listings(new ProjectMessages(), ACCESS_LEVEL_READ, logged_user()), 'order' => 'created_on')); // findAll }