public function GetPostType_Name($typeid) { if (isset($this->posttype[$typeid])) { return $this->posttype[$typeid][0]; } return ''; }