コード例 #1
0
ファイル: Propel.php プロジェクト: pgodel/PageRoller
        }
        self::$instancePoolingEnabled = false;
        return true;
    }
    /**
     * Enable instance pooling (enabled by default).
     * 
     * @return boolean true if the method changed the instance pooling state,
     *                 false if it was already enabled
     */
    public static function enableInstancePooling()
    {
        if (self::$instancePoolingEnabled) {
            return false;
        }
        self::$instancePoolingEnabled = true;
        return true;
    }
    /**
     *  the instance pooling behaviour. True by default.
     *
     * @return     boolean Whether the pooling is enabled or not.
     */
    public static function isInstancePoolingEnabled()
    {
        return self::$instancePoolingEnabled;
    }
}
// Since the Propel class is not a true singleton, this code cannot go into the __construct()
Propel::initBaseDir();
spl_autoload_register(array('Propel', 'autoload'));