library/Garp/Content/Api.php
public static function modelAliasToClass($model) {
        $classes = self::getAllModels();

        foreach ($classes as $class) {
            if ($class->alias === $model || $class->class === self::ENTITIES_NAMESPACE.'_'.$model) {
                return $class->class;
            }
        }
        throw new Garp_Content_Exception('Invalid model alias specified: '.$model);
    }
public static function modelAliasToClass($model) {
        $classes = self::getAllModels();

        foreach ($classes as $class) {
            if ($class->alias === $model || $class->class === self::ENTITIES_NAMESPACE.'_'.$model) {
                return $class->class;
            }
        }
        throw new Garp_Content_Exception('Invalid model alias specified: '.$model);
    }
public static function modelAliasToClass ( $ model ) { $ classes = self :: getAllModels ( ) ; foreach ( $ classes as $ class ) { if ( $ class -> alias === $ model || $ class -> class === self :: ENTITIES_NAMESPACE . '_' . $ model ) { return $ class -> class ; } } throw new Garp_Content_Exception ( 'Invalid model alias specified: ' . $ model ) ; }
Convert a model alias to the real class name
@param String $model
@return String
Convert a model alias to the real class name