GapOrm/Mapper/Model.php
public static function instance($className = __CLASS__)
    {
        if (!isset(self::$instances[$className])) {
            self::$instances[$className] = new $className;
        }

        return self::$instances[$className];
    }
public static function instance($className = __CLASS__)
    {
        if (!isset(self::$instances[$className])) {
            self::$instances[$className] = new $className;
        }

        return self::$instances[$className];
    }
public static function instance ( $ className = __CLASS__ ) { if ( ! isset ( self :: $ instances [ $ className ] ) ) { self :: $ instances [ $ className ] = new $ className ; } return self :: $ instances [ $ className ] ; }
Get Model instance

@param string $className
@return mixed
Get Model instance