/** * @param integer $contentUid * @return array */ protected function getPageTitleAndPidFromContentUid($contentUid) { return reset($this->recordService->get('tt_content t, pages p', 'p.title, t.pid', "t.uid = '" . $contentUid . "' AND p.uid = t.pid")); }
/** * @param string $table * @param string $fields * @param string $clause * @param string $groupBy * @param string $orderBy * @param string $limit * @return array|NULL */ public function get($table, $fields, $clause = '1=1', $groupBy = '', $orderBy = '', $limit = '') { $records = parent::get($table, $fields, $clause, $groupBy, $orderBy, $limit); return NULL === $records ? NULL : $this->overlayRecords($table, $records); }