コード例 #1
0
ファイル: Comment.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string $value The comment value
  * @param boolean $silent
  */
 public function __construct($value, $silent = false, $index = 0, ILess_FileInfo $currentFileInfo = null)
 {
     parent::__construct($value);
     $this->silent = (bool) $silent;
     $this->index = $index;
     $this->currentFileInfo = $currentFileInfo;
 }
コード例 #2
0
ファイル: Quoted.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string $quotedString Whole string with quotes
  * @param string $string The string without quotes
  * @param boolean $escaped Is the string escaped?
  * @param integer $index Current index
  * @param ILess_FileInfo $currentFileInfo The current file info
  */
 public function __construct($quotedString, $string, $escaped = false, $index = 0, ILess_FileInfo $currentFileInfo = null)
 {
     parent::__construct($string ? $string : '');
     $this->escaped = $escaped;
     $this->quote = $quotedString[0];
     $this->index = $index;
     $this->currentFileInfo = $currentFileInfo;
 }
コード例 #3
0
ファイル: Combinator.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string $value The string
  */
 public function __construct($value = null)
 {
     if ($value == ' ') {
         $value = ' ';
     } else {
         $value = trim($value);
     }
     parent::__construct($value);
 }
コード例 #4
0
ファイル: Directive.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string $name The name
  * @param array|string $value The value
  * @param integer $index The index
  * @param array $currentFileInfo Current file info
  */
 public function __construct($name, $value, $index = 0, ILess_FileInfo $currentFileInfo = null)
 {
     $this->name = $name;
     if (is_array($value)) {
         $ruleset = new ILess_Node_Ruleset(array(), $value);
         $ruleset->allowImports = true;
         $this->rules = array($ruleset);
     } else {
         if ($value && !$value instanceof ILess_Node) {
             throw new InvalidArgumentException('Invalid value given. It should be an instance of ILess_Node');
         }
         parent::__construct($value);
     }
     $this->index = $index;
     $this->currentFileInfo = $currentFileInfo;
 }
コード例 #5
0
ファイル: Attribute.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string|ILess_Node $key
  * @param string $operator
  * @param string|ILess_Node $value
  */
 public function __construct($key, $operator, $value)
 {
     $this->key = $key;
     $this->operator = $operator;
     parent::__construct($value);
 }
コード例 #6
0
ファイル: Expression.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param array $value
  */
 public function __construct(array $value)
 {
     parent::__construct($value);
 }
コード例 #7
0
ファイル: Assignment.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param string $key
  * @param string|ILess_INode $value
  */
 public function __construct($key, $value)
 {
     parent::__construct($value);
     $this->key = $key;
 }
コード例 #8
0
ファイル: Paren.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param ILess_Node $value
  */
 public function __construct(ILess_Node $value)
 {
     parent::__construct($value);
 }
コード例 #9
0
ファイル: Url.php プロジェクト: poef/ariadne
 /**
  * Constructor
  *
  * @param ILess_Node $value
  * @param ILess_FileInfo $currentFileInfo
  */
 public function __construct(ILess_Node $value, ILess_FileInfo $currentFileInfo = null)
 {
     parent::__construct($value);
     $this->currentFileInfo = $currentFileInfo;
 }