ILIAS  release_8 Revision v8.23
ilSystemStyleLessComment Class Reference

Capsules all data which is neither part of a variable or category structure in the less file. More...

+ Inheritance diagram for ilSystemStyleLessComment:
+ Collaboration diagram for ilSystemStyleLessComment:

Public Member Functions

 __construct (string $comment)
 ilSystemStyleLessComment constructor. More...
 
 getComment ()
 
 setComment (string $comment)
 
 __toString ()
 This function will be needed to write the comment back to the less file and restore it's initial structure in less. More...
 
- Public Member Functions inherited from ilSystemStyleLessItem
 __toString ()
 

Protected Attributes

string $comment = ''
 Random content of the less file being neither part of a variable or category. More...
 

Detailed Description

Capsules all data which is neither part of a variable or category structure in the less file.

This is needed to write the less file back to it's initial form

//== NameOfCategory // //## Comment

Definition at line 29 of file class.ilSystemStyleLessComment.php.

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleLessComment::__construct ( string  $comment)

ilSystemStyleLessComment constructor.

Definition at line 39 of file class.ilSystemStyleLessComment.php.

References setComment().

40  {
41  $this->setComment($comment);
42  }
string $comment
Random content of the less file being neither part of a variable or category.
+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ilSystemStyleLessComment::__toString ( )

This function will be needed to write the comment back to the less file and restore it's initial structure in less.

Definition at line 59 of file class.ilSystemStyleLessComment.php.

References getComment().

59  : string
60  {
61  return $this->getComment() . "\n";
62  }
+ Here is the call graph for this function:

◆ getComment()

ilSystemStyleLessComment::getComment ( )

Definition at line 44 of file class.ilSystemStyleLessComment.php.

References $comment.

Referenced by __toString().

44  : string
45  {
46  return $this->comment;
47  }
string $comment
Random content of the less file being neither part of a variable or category.
+ Here is the caller graph for this function:

◆ setComment()

ilSystemStyleLessComment::setComment ( string  $comment)

Definition at line 49 of file class.ilSystemStyleLessComment.php.

References ILIAS\UI\examples\Symbol\Glyph\Comment\comment().

Referenced by __construct().

49  : void
50  {
51  $comment = str_replace(PHP_EOL, '', $comment);
52  $this->comment = str_replace("\n", '', $comment);
53  }
string $comment
Random content of the less file being neither part of a variable or category.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $comment

string ilSystemStyleLessComment::$comment = ''
protected

Random content of the less file being neither part of a variable or category.

Definition at line 34 of file class.ilSystemStyleLessComment.php.

Referenced by getComment().


The documentation for this class was generated from the following file: