Beispiel #1
0
 /**
  * Constructor
  *
  * @param string $filename
  * @param string $mode
  * @param bool $useIncludePath
  * @param null|resource $context
  */
 public function __construct($filename, $mode = "r", $useIncludePath = false, $context = null)
 {
     $this->filename = $filename;
     $args = func_get_args();
     count($args) < 2 ? $args[] = $mode : '';
     $this->resource = call_user_func_array('fopen', $args);
     parent::__construct($filename);
 }