public function getTypeName($type)
    {
        $allowedTypes = $this->getAllowedTypes();

        if ($type && isset($allowedTypes[$type])) {
            return $allowedTypes[$type];
        }

        return t("None"); // @todo
    }
public function getTypeName($type)
    {
        $allowedTypes = $this->getAllowedTypes();

        if ($type && isset($allowedTypes[$type])) {
            return $allowedTypes[$type];
        }

        return t("None"); // @todo
    }
public function getTypeName ( $ type ) { $ allowedTypes = $ this -> getAllowedTypes ( ) ; if ( $ type && isset ( $ allowedTypes [ $ type ] ) ) { return $ allowedTypes [ $ type ] ; } return t ( "None" ) ; // @todo }
Get type human readable name

@param string $type

@return string
Get type human readable name