Source of file KnowledgeBaseCategory.php
Size: 0,627 Bytes - Last Modified: 2021-12-23T10:32:41+00:00
/var/www/docs.ssmods.com/process/src/code/Pages/KnowledgeBaseCategory.php
123456789101112131415161718192021222324252627 | <?php class KnowledgeBaseCategory extends KnowledgeBasePage { private static $singular_name = 'KB Category'; private static $db = array( 'Description' => 'Varchar(255)' ); private static $allowed_children = array( 'KnowledgeBaseArticle', 'KnowledgeBaseCategory' ); function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab('Root.Main', new TextField('Description', 'Category Description', null, 255), 'Content'); return $fields; } } class KnowledgeBaseCategory_Controller extends KnowledgeBasePage_Controller { } |