/** * Конвертирует массив кодов сообщений в массив уникальных идентификаторов */ private function convertMsgIdsToUniques(array $msgIds) { $result = array(); foreach ($msgIds as $msgId) { $result[] = $this->SETTINGS->getMsgUnique($msgId); } return $result; }
public function __construct(DiscussionSettings $settings) { $this->settings = $settings; $this->table = $settings->getTable(); $this->idColumn = $settings->getIdColumn(); $this->threadIdColumn = $settings->getThreadIdColumn(); $this->themeColumn = $settings->getThemeColumn(); $this->msgClass = $settings->getMsgClass(); }
public function getAllMessages(DiscussionSettings $settings) { return $this->getArray('select * from ' . $settings->getTable() . ' where b_deleted=0'); }
public function __toString() { return get_called_class() . ' [' . $this->SETTINGS->getIdColumn() . '=' . $this->getId() . ']'; }