Source of file MDHierarchyLevel.php
Size: 0,856 Bytes - Last Modified: 2021-12-23T10:31:40+00:00
/var/www/docs.ssmods.com/process/src/code/model/MDHierarchyLevel.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php /** * @author Rainer Spittel (rainer at silverstripe dot com) * @package geocatalog * @subpackage model */ /** * MDHierarchyLevel implements the ISO19139 structure for multiple hierarchy levels. It will * be stored alongside with MDMetadata class. */ class MDHierarchyLevel extends MDDataObject { /** * Data structure for MDHierarchyLevel */ public static $db = array( "Value" => "Varchar", ); /** * Data relationships for MDHierarchyLevel */ public static $has_one = array( "MDMetadata" => "MDMetadata", ); public function getValueNice() { $retValue = $this->Value; $codes = MDCodeTypes::get_scope_codes(); if (isset($codes[$this->Value])) { $retValue = $codes[$this->Value]; } return $retValue; } } |