ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilSystemStyleLessComment.php
Go to the documentation of this file.
1 <?php
2 require_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 }
__toString()
This function will be needed to write the comment back to the less file and restore it&#39;s initial stru...
comment()
Definition: comment.php:2
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
__construct($comment)
ilSystemStyleLessComment constructor.
Abstracts content of a less file.
Capsules all data which is neither part of a variable or category structure in the less file...