/** * Sets the needed static variables * * @return void */ private static function _setStaticVars() { // Gets the instance of the string utilities self::$_str = Woops_Number_Utils::getInstance(); // Static variables are set self::$_hasStatic = true; }
/** * Class constructor * * @param string The path to the YAML file * @return void */ public function __construct($path) { // Checks if the file exists if (!file_exists($path)) { // The file does not exist throw new Woops_Yaml_File_Parser_Exception('The requested file does not exist (path: ' . $path . ')', Woops_Yaml_File_Parser_Exception::EXCEPTION_NO_FILE); } // Checks if the file is readable if (!file_exists($path)) { // The file is not readable throw new Woops_Yaml_File_Parser_Exception('The requested file is not readable (path: ' . $path . ')', Woops_Yaml_File_Parser_Exception::EXCEPTION_FILE_NOT_READABLE); } // Calls the parent constructor parent::__construct(file_get_contents($path)); }