[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Alpha 5 * 6 * @package Less 7 * @subpackage tree 8 */ 9 class Less_Tree_Alpha extends Less_Tree{ 10 public $value; 11 public $type = 'Alpha'; 12 13 public function __construct($val){ 14 $this->value = $val; 15 } 16 17 //function accept( $visitor ){ 18 // $this->value = $visitor->visit( $this->value ); 19 //} 20 21 public function compile($env){ 22 23 if( is_object($this->value) ){ 24 $this->value = $this->value->compile($env); 25 } 26 27 return $this; 28 } 29 30 /** 31 * @see Less_Tree::genCSS 32 */ 33 public function genCSS( $output ){ 34 35 $output->add( "alpha(opacity=" ); 36 37 if( is_string($this->value) ){ 38 $output->add( $this->value ); 39 }else{ 40 $this->value->genCSS( $output); 41 } 42 43 $output->add( ')' ); 44 } 45 46 public function toCSS(){ 47 return "alpha(opacity=" . (is_string($this->value) ? $this->value : $this->value->toCSS()) . ")"; 48 } 49 50 51 }
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 |