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