code/libraries/joomlatools/library/template/engine/factory.php
public function isRegistered($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);

            if(!$class || !array_key_exists('KTemplateEngineInterface', class_implements($class)))
            {
                throw new UnexpectedValueException(
                    'Engine: '.$identifier.' does not implement KTemplateEngineInterface'
                );
            }

            $types = call_user_func(array($class, 'getFileTypes'));/*$class::getFileTypes();*/
        }
        else $types = (array) $identifier;

        $result = in_array($types, $this->getFileTypes());
        return $result;
    }
public function isRegistered($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);

            if(!$class || !array_key_exists('KTemplateEngineInterface', class_implements($class)))
            {
                throw new UnexpectedValueException(
                    'Engine: '.$identifier.' does not implement KTemplateEngineInterface'
                );
            }

            $types = call_user_func(array($class, 'getFileTypes'));/*$class::getFileTypes();*/
        }
        else $types = (array) $identifier;

        $result = in_array($types, $this->getFileTypes());
        return $result;
    }
public function isRegistered ( $ identifier ) { if ( strpos ( $ identifier , '.' ) !== false ) { $ identifier = $ this -> getIdentifier ( $ identifier ) ; $ class = $ this -> getObject ( 'manager' ) -> getClass ( $ identifier ) ; if ( ! $ class || ! array_key_exists ( 'KTemplateEngineInterface' , class_implements ( $ class ) ) ) { throw new UnexpectedValueException ( 'Engine: ' . $ identifier . ' does not implement KTemplateEngineInterface' ) ; } $ types = call_user_func ( array ( $ class , 'getFileTypes' ) ) ; /*$class::getFileTypes();*/ } else $ types = ( array ) $ identifier ; $ result = in_array ( $ types , $ this -> getFileTypes ( ) ) ; return $ result ; }
Check if the engine is registered

@param string $identifier A engine object identifier string or a file type
@throws UnexpectedValueException
@return bool TRUE if the engine is a registered, FALSE otherwise.
Check if the engine is registered