ILIAS  release_8 Revision v8.24
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...
 
 __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.

40 {
41 $this->setComment($comment);
42 }
string $comment
Random content of the less file being neither part of a variable or category.

References setComment().

+ 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.

Reimplemented from ilSystemStyleLessItem.

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

59 : string
60 {
61 return $this->getComment() . "\n";
62 }

References getComment().

+ Here is the call graph for this function:

◆ getComment()

ilSystemStyleLessComment::getComment ( )

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

44 : string
45 {
46 return $this->comment;
47 }

References $comment.

Referenced by __toString().

+ Here is the caller graph for this function:

◆ setComment()

ilSystemStyleLessComment::setComment ( string  $comment)

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

49 : void
50 {
51 $comment = str_replace(PHP_EOL, '', $comment);
52 $this->comment = str_replace("\n", '', $comment);
53 }

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

Referenced by __construct().

+ 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(), and setComment().


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