Get the translated name of a route type with the given $routeTypeId.

@param int|string $routeTypeId The route type id.
@return bool|string
359400
public static function get($routeTypeId)
    {
        if (!self::$_initialized) {
            self::_init();
        }

        $routeTypeId = (int)$routeTypeId;

        if (isset(self::$_routeTypes[$routeTypeId])) {
            return self::$_routeTypes[$routeTypeId];
        }

        return false;
    }
67199
public function countInstancesOfType($typeId)
    {
        try {
            return $this->innerGateway->countInstancesOfType($typeId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
1049732
protected function getTypeById($typeId)
    {
        /** @var CollectionType $type */
        $type = $this->em->getRepository('SuluMediaBundle:CollectionType')->find($typeId);
        if (!$type) {
            throw new CollectionTypeNotFoundException('Collection Type with the ID ' . $typeId . ' not found');
        }

        return $type;
    }
643801
protected function visitorGetPageIdByType($PageId,$PageType,$PageAlias)
	{
	    if ($PageType == self::PAGE_TYPE_NORMAL) 
	    {
	        ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdNormal: '. $PageId);
	    	return $PageId;
	    }
	    
	    if ($PageType == self::PAGE_TYPE_FORBIDDEN)
	    {
	        //Page ID von der 403 Seite ermitteln - nicht mehr
	        ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdNormal over 403: '. $PageId);
	        return $PageId; 
	    }
	    
        //Reader mit Parameter oder ohne?
        $uri = $_SERVER['REQUEST_URI']; // /news/james-wilson-returns.html
        $alias = '';
        //steht suffix (html) am Ende?
        $urlSuffix = \System::getContainer()->getParameter('contao.url_suffix'); // default: .html
        if (substr($uri,-strlen($urlSuffix)) == $urlSuffix)
        {
            //Alias nehmen
            $alias = substr($uri,strrpos($uri,'/')+1,-strlen($urlSuffix));
            if (false === $alias) 
            {
                ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdReaderSelf: '. $PageId);
            	return $PageId; // kein Parameter, Readerseite selbst
            }
        }
        else 
        {
            $alias = substr($uri,strrpos($uri,'/')+1);
        }
        ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'Alias: '. $alias);
        
        if ($PageType == self::PAGE_TYPE_NEWS)
        {
            //alias = james-wilson-returns
            $objNews = \Database::getInstance()
                            ->prepare("SELECT id FROM tl_news WHERE alias=?")
                            ->limit(1)
                            ->execute($alias);
            if ($objNews->numRows > 0)
            {
                ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdNews: '. $objNews->id);
                return $objNews->id;
            } 
	        
	    }
	    if ($PageType == self::PAGE_TYPE_FAQ)
	    {
	        //alias = are-there-exams-how-do-they-work
	        $objFaq = \Database::getInstance()
                            ->prepare("SELECT id FROM tl_faq WHERE alias=?")
                            ->limit(1)
                            ->execute($alias);
	        if ($objFaq->numRows > 0)
	        {
	            ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdFaq: '. $objFaq->id);
	            return $objFaq->id;
	        }
	    }
	    if ($PageType == self::PAGE_TYPE_ISOTOPE)
	    {
	        //alias = a-perfect-circle-thirteenth-step
	        $objIsotope = \Database::getInstance()
                	        ->prepare("SELECT id FROM tl_iso_product WHERE alias=?")
                	        ->limit(1)
                	        ->execute($alias);
	        if ($objIsotope->numRows > 0)
	        {
	            ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'PageIdIsotope: '. $objIsotope->id);
	            return $objIsotope->id;
	        }
	    }
	    
	    ModuleVisitorLog::writeLog(__METHOD__ , __LINE__ , 'Unknown PageType: '. $PageType);
	}
912242
private function getRouteName($route = null)
    {
        return null === $route ? $this->request->attributes->get('_route') : $route;
    }
1375052
public function getNameValueMapByType( $parentId, $parentType, $type ) {

		$config = [];

		$config[ 'conditions' ][ 'parentId' ]	= $parentId;
		$config[ 'conditions' ][ 'parentType' ] = $parentType;
		$config[ 'conditions' ][ 'type' ]		= $type;

		return $this->getNameValueMap( $config );
	}
441801
public function getAllByPostType($lang = "", $postTypeID)
    {
        $orderBy = (isset($_GET['order'])) ? $orderBy = $_GET['order'] : 'tagID';
        $orderType = (isset($_GET['type'])) ? $orderType = $_GET['type'] : 'DESC';
        // get data
        return Tag::where('postTypeID', $postTypeID)->orderBy($orderBy, $orderType)->paginate(Tag::$rowsPerPage);
    }
1325867
public static function getByID($authTypeID)
    {
        $db = Loader::db();
        $row = $db->GetRow('SELECT * FROM AuthenticationTypes where authTypeID=?', [$authTypeID]);
        if (!$row) {
            throw new Exception(t('Invalid Authentication Type ID'));
        }
        $at = self::load($row);
        $at->loadController();

        return $at;
    }
1056537
public function getTypeById( $id, $prefix = null )
	{
		if ( ! isset( $this->typeIds[ $id ] ) ) return false;
		return isset( $this->typeIds[ $id ]['istype'] ) && $this->typeIds[ $id ]['istype']
			? $this->getType( $this->typeIds[ $id ]['name'], $prefix )
			: $this->getElement( $this->typeIds[ $id ]['name'], $prefix );
	}
612350
public function getRoute($coverageId, $routeId, $depth = 1)
    {
        $query = array(
            'api' => 'coverage',
            'parameters' => array(
                'region'      => $coverageId,
                'path_filter' => 'routes/'.$routeId,
                'parameters'  => '?depth='.$depth
            )
        );

        return $this->navitia_component->call($query);
    }
691766
public function buildPageResourceId(
        $siteId,
        $pageType,
        $pageName
    ) {
        return $this->resourceName->get(
            ResourceName::RESOURCE_SITES,
            $siteId,
            ResourceName::RESOURCE_PAGES,
            $pageType,
            $pageName
        );
    }
619560
public static function startLink($moduleUid, $routesType)
    {
        if (!empty(static::$_startLinks[$moduleUid][$routesType])) {
            $linkData = static::$_startLinks[$moduleUid][$routesType];

            $tcCat = $linkData['tcCat'];
            $tc = "{$tcCat}/module";
            if (!empty(Yii::$app->i18n->translations["{$tcCat}*"])) {
                $label = $linkData['label'];
                $linkData['label'] = Yii::t($tc, $label);
            }
            return $linkData;
        }
        return false;
    }
1259848
public function getPath($languageCode)
    {
        $route = $this->routes()->newQuery()
            ->where('language_code', $languageCode)
            ->first();
        if (empty($route->path)) {
            throw new DomainException("There is no route in '$languageCode' language for content: $this->id");
        }
        return $route->path;
    }
1185364
protected static function typeIDToType($type_id) {
        if ($type_id === 0) {
            return 'send';
        } else if ($type_id === 2) {
            return 'enhanced_send';
        } else if ($type_id === 10) {
            return 'order';
        } else if ($type_id === 11) {
            return 'btcpay';
        } else if ($type_id === 20) {
            return 'issuance';
        } else if ($type_id === 30) {
            return 'broadcast';
        } else if ($type_id === 40) {
            return 'bet';
        } else if ($type_id === 50) {
            return 'dividend';
        } else if ($type_id === 70) {
            return 'cancel';
        } else if ($type_id === 21) {
            return 'callback';
        } else if ($type_id === 80) {
            return 'rps';
        } else if ($type_id === 81) {
            return 'rpsresolve';
        }

        return null;
    }
349048
public function get_page_type_idstring($id) {
        foreach ($this->types as $pagetype) {
            if ((int)$pagetype->typeid === (int)$id) {
                return $pagetype->idstring;
            }
        }
        return 'unknown';
    }
1093570
private static TransportType map2TransportType(String transportId) {
        TransportType type;
        if (CXF_HTTP_TRANSPORT_ID.equals(transportId) || SOAP_HTTP_TRANSPORT_ID.equals(transportId)) {
            type = TransportType.HTTP;
        } else {
            type = TransportType.OTHER;
        }
        return type;
    }
401502
public function contentfulContentTypeName(string $contentTypeId): string
    {
        $contentType = $this->contentful->getContentType($contentTypeId);
        if (!$contentType instanceof ContentType) {
            return '';
        }

        return $contentType->getName();
    }