Source of file MDTopicCategory.php
Size: 0,937 Bytes - Last Modified: 2021-12-23T10:31:40+00:00
/var/www/docs.ssmods.com/process/src/code/model/MDTopicCategory.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php /** * @author Rainer Spittel (rainer at silverstripe dot com) * @package geocatalog * @subpackage model */ /** * MDTopicCategory implements the ISO19139 structure for topic categories. It will * be stored alongside with MDMetadata class. */ class MDTopicCategory extends MDDataObject { /** * Data structure for MDTopicCategory */ public static $db = array( "Value" => "Varchar", ); /** * Data relationships for MDTopicCategory */ public static $has_one = array( "MDMetadata" => "MDMetadata", ); public function getTopicCategoryNice() { $retValue = ''; $codeTypes = MDCodeTypes::get_categories(); if (isset($codeTypes[$this->Value])) { if ($codeTypes[$this->Value] != "(please select a category)") { $retValue = $codeTypes[$this->Value]; } } return $retValue; } } |