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 getTheme() { return $this->SETTINGS->isThemed() && !$this->isDeleted() && $this->isRoot() ? parent::__get($this->SETTINGS->getThemeColumn()) : null; }