[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Parser output 5 * 6 * @package Less 7 * @subpackage output 8 */ 9 class Less_Output{ 10 11 /** 12 * Output holder 13 * 14 * @var string 15 */ 16 protected $strs = array(); 17 18 /** 19 * Adds a chunk to the stack 20 * 21 * @param string $chunk The chunk to output 22 * @param Less_FileInfo $fileInfo The file information 23 * @param integer $index The index 24 * @param mixed $mapLines 25 */ 26 public function add($chunk, $fileInfo = null, $index = 0, $mapLines = null){ 27 $this->strs[] = $chunk; 28 } 29 30 /** 31 * Is the output empty? 32 * 33 * @return boolean 34 */ 35 public function isEmpty(){ 36 return count($this->strs) === 0; 37 } 38 39 40 /** 41 * Converts the output to string 42 * 43 * @return string 44 */ 45 public function toString(){ 46 return implode('',$this->strs); 47 } 48 49 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |