setContentSections(); } /** * * get content sections table service * * @return \Ppb\Service\Table\Relational\ContentSections */ public function getContentSections() { return $this->_contentSections; } /** * * set content sections table service * * @param \Ppb\Service\Table\Relational\ContentSections $contentSections * @return $this */ public function setContentSections(ContentSectionsService $contentSections = null) { if (!$contentSections instanceof ContentSectionsService) { $contentSections = new ContentSectionsService(); } $this->_contentSections = $contentSections; return $this; } public function getData() { return $this->_data; } /** * * get all content sections having a certain parent id * * @param string|\Cube\Db\Select $where SQL where clause, or a select object * @return array */ public function contentSections($where = null) { if ($where === null) { return $this; } $this->_data = $this->getContentSections()->fetchAll($where); return $this->_data; } }