File modules/dsl/standard/WriteWrapper.class.php

Last commit: Tue Jul 19 00:10:19 2022 +0200	Jan Dankert	New: Secure Flag for Script Interpreter which is enabled by default.
1 <?php 2 3 namespace dsl\standard; 4 5 class WriteWrapper 6 { 7 /** 8 * @var Writer 9 */ 10 private $writer; 11 private $prefix; 12 13 /** 14 * WriteWrapper constructor. 15 * @param Writer $writer 16 * @param string $prefix Prefix 17 */ 18 public function __construct( $writer,$prefix ) 19 { 20 $this->writer = $writer; 21 $this->prefix = $prefix; 22 } 23 24 /** 25 * Write something to an output queue. 26 * 27 * @param $text 28 */ 29 public function __invoke( $text ) 30 { 31 call_user_func($this->writer,$text ); 32 call_user_func($this->writer,$this->prefix ); 33 } 34 }
Download modules/dsl/standard/WriteWrapper.class.php
History Tue, 19 Jul 2022 00:10:19 +0200 Jan Dankert New: Secure Flag for Script Interpreter which is enabled by default.