Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param string $file File path
  * @param int $options File options
  */
 public function __construct($file, $options = self::FILE_CREATE)
 {
     parent::__construct($file);
     // Set the file options
     $this->setOptions($options);
     // Validate the file
     $this->validateWriterFile();
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @param string $file File path
  */
 public function __construct($file)
 {
     parent::__construct($file);
     // Validate the file
     $this->validateReaderFile();
 }