ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilSystemStyleScssComment Class Reference

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

+ Inheritance diagram for ilSystemStyleScssComment:
+ Collaboration diagram for ilSystemStyleScssComment:

Public Member Functions

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

Protected Attributes

string $comment = ''
 Random content of the Scss 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 Scss file.

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

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

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleScssComment::__construct ( string  $comment)

ilSystemStyleScssComment constructor.

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

References setComment().

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

Member Function Documentation

◆ __toString()

ilSystemStyleScssComment::__toString ( )

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

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

References getComment().

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

◆ getComment()

ilSystemStyleScssComment::getComment ( )

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

References $comment.

Referenced by __toString().

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

◆ setComment()

ilSystemStyleScssComment::setComment ( string  $comment)

Definition at line 49 of file class.ilSystemStyleScssComment.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 Scss 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 ilSystemStyleScssComment::$comment = ''
protected

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

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

Referenced by getComment().


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