@@ 143-154 (lines=12) @@ | ||
140 | $record = $this->getRecord(); |
|
141 | $type = $record[CoreContentProvider::MENUTYPE_FIELDNAME]; |
|
142 | switch ($type) { |
|
143 | case CoreContentProvider::MENU_CATEGORIZEDPAGES: |
|
144 | $selected = $record['selected_categories']; |
|
145 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
|
146 | 'uid_foreign', |
|
147 | 'sys_category_record_mm', |
|
148 | "fieldname = 'categories' AND tablenames = 'pages' AND uid_local IN (" . $selected . ')', |
|
149 | 'uid_foreign', |
|
150 | 'sorting ASC' |
|
151 | ); |
|
152 | $pageUids = array_map('array_pop', $bindings); |
|
153 | $this->view->assign('pageUids', $pageUids); |
|
154 | break; |
|
155 | case CoreContentProvider::MENU_CATEGORIZEDCONTENT: |
|
156 | $selected = $record['selected_categories']; |
|
157 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
|
@@ 155-166 (lines=12) @@ | ||
152 | $pageUids = array_map('array_pop', $bindings); |
|
153 | $this->view->assign('pageUids', $pageUids); |
|
154 | break; |
|
155 | case CoreContentProvider::MENU_CATEGORIZEDCONTENT: |
|
156 | $selected = $record['selected_categories']; |
|
157 | $bindings = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
|
158 | 'uid_foreign', |
|
159 | 'sys_category_record_mm', |
|
160 | "fieldname = 'categories' AND tablenames = 'tt_content' AND uid_local IN (" . $selected . ')', |
|
161 | 'uid_foreign', |
|
162 | 'sorting ASC' |
|
163 | ); |
|
164 | $contentUids = array_map('array_pop', $bindings); |
|
165 | $this->view->assign('contentUids', $contentUids); |
|
166 | break; |
|
167 | case CoreContentProvider::MENU_RELATEDPAGES: |
|
168 | $whereKeywords = $this->getWhereQueryForKeywords($record); |
|
169 | $selectedUids = TRUE === empty($record['pages']) ? $record['uid'] : $record['pages']; |