ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
class.ilSystemStyleLessComment.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
29
class
ilSystemStyleLessComment
extends
ilSystemStyleLessItem
30
{
34
protected
string
$comment
=
''
;
35
39
public
function
__construct
(
string
$comment
)
40
{
41
$this->
setComment
($comment);
42
}
43
44
public
function
getComment
(): string
45
{
46
return
$this->comment
;
47
}
48
49
public
function
setComment
(
string
$comment
): void
50
{
51
$comment
= str_replace(PHP_EOL,
''
,
$comment
);
52
$this->
comment
= str_replace(
"\n"
,
''
,
$comment
);
53
}
54
59
public
function
__toString
(): string
60
{
61
return
$this->
getComment
() .
"\n"
;
62
}
63
}
ilSystemStyleLessComment
Capsules all data which is neither part of a variable or category structure in the less file.
Definition:
class.ilSystemStyleLessComment.php:30
ilSystemStyleLessComment\$comment
string $comment
Random content of the less file being neither part of a variable or category.
Definition:
class.ilSystemStyleLessComment.php:34
ilSystemStyleLessComment\__construct
__construct(string $comment)
ilSystemStyleLessComment constructor.
Definition:
class.ilSystemStyleLessComment.php:39
ilSystemStyleLessComment\getComment
getComment()
Definition:
class.ilSystemStyleLessComment.php:44
ilSystemStyleLessComment\setComment
setComment(string $comment)
Definition:
class.ilSystemStyleLessComment.php:49
ilSystemStyleLessComment\__toString
__toString()
This function will be needed to write the comment back to the less file and restore it's initial stru...
Definition:
class.ilSystemStyleLessComment.php:59
ilSystemStyleLessItem
Abstracts content of a less file.
Definition:
class.ilSystemStyleLessItem.php:24
ILIAS\UI\examples\Symbol\Glyph\Comment\comment
comment()
Definition:
comment.php:7
Services
Style
System
classes
Less
class.ilSystemStyleLessComment.php
Generated on Sun Nov 2 2025 22:01:51 for ILIAS by
1.9.4 (using
Doxyfile
)