Ejemplo n.º 1
0
 /**
  * @see	\wcf\system\io\File::__call($function, $arguments)
  */
 public function __call($function, $arguments)
 {
     if ($this->isFlushed) {
         throw new SystemException('AtomicWriter for ' . $this->targetFilename . ' was already flushed.');
     }
     switch ($function) {
         case 'write':
         case 'puts':
         case 'seek':
         case 'tell':
         case 'rewind':
         case 'truncate':
             // these are fine
             break;
         default:
             throw new SystemException("AtomicWriter does not allow '" . $function . "'");
     }
     return parent::__call($function, $arguments);
 }