Source of file ArticleTypePage.php
Size: 1,430 Bytes - Last Modified: 2021-12-23T10:51:18+00:00
/var/www/docs.ssmods.com/process/src/src/Pages/ArticleTypePage.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 | <?php namespace TheWebmen\Articles\Pages; use TheWebmen\Articles\Controllers\ArticleTypePageController; use TheWebmen\Articles\ElementalGrid\ElementArticles; class ArticleTypePage extends \Page { /** * @var string */ private static $table_name = 'TheWebmen_ArticleTypePage'; /** * @var string */ private static $singular_name = 'Type page'; /** * @var string */ private static $plural_name = 'Type pages'; /** * @var string */ private static $description = 'A page that will display articles that are related to a type'; /** * @var string */ private static $icon_class = 'font-icon-circle-star'; /** * @var bool */ private static $can_be_root = false; /** * @var array */ private static $allowed_children = []; /** * @var array */ private static $db = []; /** * @var array */ private static $has_one = [ 'ArticlesPage' => ArticlesPage::class ]; /** * @var array */ private static $has_many = [ 'Articles' => ArticlePage::class, ]; /** * @var array */ private static $many_many = [ 'Articles' => ArticlePage::class, 'ElementArticles' => ElementArticles::class, ]; public function getControllerName(): string { return ArticleTypePageController::class; } } |