public function SassImportNode::__construct in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassImportNode.php \SassImportNode::__construct()
* SassImportNode. *
Parameters
object source token: * @return SassImportNode
Overrides SassNode::__construct
File
- phamlp/
sass/ tree/ SassImportNode.php, line 34
Class
- SassImportNode
- SassImportNode class. Represents a CSS Import. @package PHamlP @subpackage Sass.tree
Code
public function __construct($token) {
parent::__construct($token);
preg_match(self::MATCH, $token->source, $matches);
foreach (explode(',', $matches[self::FILES]) as $file) {
$this->files[] = trim($file);
}
}