/**
  * Base file plugin constructor
  *
  * @param int   $writedelay  Number of seconds to delay write calls
  *                           default: 0 (no delay)
  * Call parent constructor using all defaults
  */
 public function __construct($writedelay = 0)
 {
     $this->writedelay = $writedelay;
     parent::__construct();
 }
Esempio n. 2
0
 /**
  * Mock file plugin constructor
  *
  * @param array $data The data represented by this file
  */
 public function __construct($data, $filename = '', $fileid = null, $sendtobrowser = false)
 {
     parent::__construct($filename, $fileid, $sendtobrowser);
     $this->index = 0;
     $this->data = $data;
 }