/** * Implementa la interfaz FileStorable */ public static function load_config() { if (self::$config == null) { self::$config = FileStore::read(__CLASS__); if (self::$config === null) { self::$config = array('HOST' => 'unconfigured host', 'USER' => 'unconfigured user', 'PASSWORD' => 'unconfigured password', 'DATABASE' => 'unconfigured database'); } } }
private static function load_data() { if (null == self::$_data) { self::$_data = FileStore::read(__CLASS__); if (self::$_data === null) { self::$_data = array('global' => array()); } } }