Source of file NewsCategory.php
Size: 0,404 Bytes - Last Modified: 2021-12-23T10:30:10+00:00
/var/www/docs.ssmods.com/process/src/code/model/NewsCategory.php
123456789101112131415161718192021 | <?php class NewsCategory extends DataObject { public static $has_many = array( 'NewsItems' => 'NewsPage' ); public static $db = array( 'Title' => 'Varchar(255)' ); public function getLink() { $newsHolder = NewsHolder::get_one('NewsHolder'); if ($newsHolder) { return $newsHolder->Link() . '?category=' . $this->ID; } } } |