public function getTypeLabel($type, $constId)
    {
        if (!is_null($type)) {
            $array = $this->listTypes($constId);
            if (isset($array[$type])) {
                return $array[$type];
            }
        }

        return false;
    }
public function getTypeLabel($type, $constId)
    {
        if (!is_null($type)) {
            $array = $this->listTypes($constId);
            if (isset($array[$type])) {
                return $array[$type];
            }
        }

        return false;
    }
public function getTypeLabel ( $ type , $ constId ) { if ( ! is_null ( $ type ) ) { $ array = $ this -> listTypes ( $ constId ) ; if ( isset ( $ array [ $ type ] ) ) { return $ array [ $ type ] ; } } return false ; }
Returns type label
@param $type
@param $constId
@return bool
Returns type label