Пример #1
0
 /**
  * Constructor
  *
  * @param	string  Path to the config file folder
  * @param	string  Config file name
  *
  */
 public function __construct($path, $config_file)
 {
     if (is_file(realpath($path . $config_file))) {
         self::$path = realpath($path . $config_file);
         self::$content = @file_get_contents(self::$path);
     } else {
         return FALSE;
     }
 }
Пример #2
0
 /**
  * Constructor
  *
  * @param	string  Path to the config file folder
  * @param	string  Config file name
  *
  */
 public function __construct($path, $config_file)
 {
     if (is_file(realpath($path . $config_file))) {
         self::$path = realpath($path . $config_file);
         self::$content = @file_get_contents(self::$path);
     } else {
         return FALSE;
         //@note constructors cannot return anything
     }
 }