ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilSystemStyleLessComment.php
Go to the documentation of this file.
1<?php
2require_once("./Services/Style/System/classes/Less/class.ilSystemStyleLessItem.php");
16{
17
23 protected $comment = "";
24
29 public function __construct($comment)
30 {
31 $this->setComment($comment);
32 }
33
37 public function getComment()
38 {
39 return $this->comment;
40 }
41
45 public function setComment($comment)
46 {
47 $this->comment = str_replace(PHP_EOL, '', $comment);
48 }
49
56 public function __toString()
57 {
58 return $this->getComment()."\n";
59 }
60
61}
An exception for terminatinating execution or to throw for unit testing.
Capsules all data which is neither part of a variable or category structure in the less file.
__construct($comment)
ilSystemStyleLessComment constructor.
__toString()
This function will be needed to write the comment back to the less file and restore it's initial stru...
Abstracts content of a less file.
comment()
Definition: comment.php:2