File dsl/standard/WriteWrapper.class.php
Last commit: Thu Dec 26 12:12:43 2024 +0100 Jan Dankert The last update from upstream repository openrat-cms.
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 }
Downloaddsl/standard/WriteWrapper.class.php
History Thu, 26 Dec 2024 12:12:43 +0100 Jan Dankert The last update from upstream repository openrat-cms.