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