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'); }