| 1 | <?php |
||
| 5 | class ContentBlock extends Block |
||
| 6 | { |
||
| 7 | private static $table_name = "ContentBlock"; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * If the singular name is set in a private static $singular_name, it cannot be changed using the translation files |
||
| 11 | * for some reason. Fix it by defining a method that handles the translation. |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | public function singular_name() |
||
| 18 | |||
| 19 | /** |
||
| 20 | * If the plural name is set in a private static $plural_name, it cannot be changed using the translation files |
||
| 21 | * for some reason. Fix it by defining a method that handles the translation. |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function plural_name() |
||
| 28 | |||
| 29 | private static $db = [ |
||
| 30 | 'Content' => 'HTMLText', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | public function fieldLabels($includeRelations = true) |
||
| 42 | } |
||
| 43 |