ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $comment = str_replace(PHP_EOL, '', $comment);
48 $this->comment = str_replace("\n", '', $comment);
49 }
50
57 public function __toString()
58 {
59 return $this->getComment() . "\n";
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