Esempio n. 1
0
 /**
  * Constructor...
  *
  * @param \r8\FileSys\File $file The file being opened
  */
 public function __construct(\r8\FileSys\File $file)
 {
     $file->requirePath();
     if (!$file->isReadable()) {
         throw new \r8\Exception\FileSystem\Permissions($file->getPath(), "File is not readable");
     }
     parent::__construct($file->getPath());
 }
Esempio n. 2
0
 /**
  * Constructor...
  */
 public function __construct()
 {
     parent::__construct("php://stdin");
 }