예제 #1
0
파일: Writer.php 프로젝트: apparat/resource
 /**
  * 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();
 }
예제 #2
0
파일: Reader.php 프로젝트: apparat/resource
 /**
  * Constructor
  *
  * @param string $file File path
  */
 public function __construct($file)
 {
     parent::__construct($file);
     // Validate the file
     $this->validateReaderFile();
 }