ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ($comment)
 ilSystemStyleLessComment constructor. More...
 
 getComment ()
 
 setComment ($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

 $comment = ""
 

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

Author
Timon Amstutz timon.nosp@m..ams.nosp@m.tutz@.nosp@m.ilub.nosp@m..unib.nosp@m.e.ch
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleLessComment::__construct (   $comment)

ilSystemStyleLessComment constructor.

Parameters
string$comment

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

References $comment, and 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.

Returns
string

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

References getComment().

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

◆ getComment()

ilSystemStyleLessComment::getComment ( )
Returns
string

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

References $comment.

Referenced by __toString().

+ Here is the caller graph for this function:

◆ setComment()

ilSystemStyleLessComment::setComment (   $comment)
Parameters
string$comment

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

References $comment, comment(), and PHP_EOL.

Referenced by __construct().

46  {
47  $comment = str_replace(PHP_EOL, '', $comment);
48  $this->comment = str_replace("\n", '', $comment);
49  }
comment()
Definition: comment.php:2
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $comment

ilSystemStyleLessComment::$comment = ""
protected

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

Referenced by __construct(), getComment(), and setComment().


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