/** * * Loads a preference file into an array * * @access public * @param string $file filename with path * @static * */ public static function loadPrefFile() { $file = APP_ROOT . 'app/cache/' . self::getPrefFile(); if (!file_exists($file)) { // If preference file doesn't exist we will generate it self::savePrefFile(); } self::$prefArr = unserialize(file_get_contents($file)); }