public function getTypeTitle($type) { $list = $this->getTypesList(); return isset($list[$type]) ? $list[$type] : $type; }