ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
class.ilSystemStyleScssComment.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
29
class
ilSystemStyleScssComment
extends
ilSystemStyleScssItem
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
}
ilSystemStyleScssComment\__toString
__toString()
This function will be needed to write the comment back to the Scss file and restore it's initial stru...
Definition:
class.ilSystemStyleScssComment.php:59
ilSystemStyleScssItem
Abstracts content of a scss file.
Definition:
class.ilSystemStyleScssItem.php:23
ilSystemStyleScssComment\__construct
__construct(string $comment)
ilSystemStyleScssComment constructor.
Definition:
class.ilSystemStyleScssComment.php:39
ilSystemStyleScssComment
Capsules all data which is neither part of a variable or category structure in the Scss file...
Definition:
class.ilSystemStyleScssComment.php:29
ilSystemStyleScssComment\setComment
setComment(string $comment)
Definition:
class.ilSystemStyleScssComment.php:49
ilSystemStyleScssComment\$comment
string $comment
Random content of the Scss file being neither part of a variable or category.
Definition:
class.ilSystemStyleScssComment.php:34
ILIAS\UI\examples\Symbol\Glyph\Comment\comment
comment()
Definition:
comment.php:7
ilSystemStyleScssComment\getComment
getComment()
Definition:
class.ilSystemStyleScssComment.php:44
Services
Style
System
classes
Scss
class.ilSystemStyleScssComment.php
Generated on Wed Sep 10 2025 14:11:57 for ILIAS by
1.8.13 (using
Doxyfile
)