Apps/Model/Admin/Content/FormCategoryDelete.php 1 location
|
@@ 112-122 (lines=11) @@
|
| 109 |
|
* Get allowed category ids as array (string values for validation) |
| 110 |
|
* @return array |
| 111 |
|
*/ |
| 112 |
|
public function categoryIds() |
| 113 |
|
{ |
| 114 |
|
$data = ContentCategory::getSortedCategories(); |
| 115 |
|
$response = []; |
| 116 |
|
foreach ($data as $key => $val) { |
| 117 |
|
if ($this->_record->id !== $key) { |
| 118 |
|
$response[] = (string)$key; |
| 119 |
|
} |
| 120 |
|
} |
| 121 |
|
return $response; |
| 122 |
|
} |
| 123 |
|
} |
Apps/Model/Admin/Content/FormContentUpdate.php 1 location
|
@@ 220-228 (lines=9) @@
|
| 217 |
|
* Get allowed category ids as array (string values for validation) |
| 218 |
|
* @return array |
| 219 |
|
*/ |
| 220 |
|
public function categoryIds() |
| 221 |
|
{ |
| 222 |
|
$data = ContentCategory::getSortedCategories(); |
| 223 |
|
$response = []; |
| 224 |
|
foreach ($data as $key=>$val) { |
| 225 |
|
$response[] = (string)$key; |
| 226 |
|
} |
| 227 |
|
return $response; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
/** |
| 231 |
|
* Validate path filter |
Apps/Model/Front/Content/FormNarrowContentUpdate.php 1 location
|
@@ 195-203 (lines=9) @@
|
| 192 |
|
* Get allowed category ids as array (string values for validation) |
| 193 |
|
* @return array |
| 194 |
|
*/ |
| 195 |
|
public function categoryIds() |
| 196 |
|
{ |
| 197 |
|
$data = ContentCategory::getSortedCategories(); |
| 198 |
|
$response = []; |
| 199 |
|
foreach ($data as $key=>$val) { |
| 200 |
|
$response[] = (string)$key; |
| 201 |
|
} |
| 202 |
|
return $response; |
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
/** |
| 206 |
|
* Validate content item pathway |