Esempio n. 1
0
 /**
  * Конвертирует массив кодов сообщений в массив уникальных идентификаторов
  */
 private function convertMsgIdsToUniques(array $msgIds)
 {
     $result = array();
     foreach ($msgIds as $msgId) {
         $result[] = $this->SETTINGS->getMsgUnique($msgId);
     }
     return $result;
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 public function getAllMessages(DiscussionSettings $settings)
 {
     return $this->getArray('select * from ' . $settings->getTable() . ' where b_deleted=0');
 }
Esempio n. 4
0
 public function __toString()
 {
     return get_called_class() . ' [' . $this->SETTINGS->getIdColumn() . '=' . $this->getId() . ']';
 }