ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilSystemStyleLessComment.php
Go to the documentation of this file.
1
<?
php
2
require_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessItem.php"
);
15
class
ilSystemStyleLessComment
extends
ilSystemStyleLessItem
16
{
17
23
protected
$comment
=
""
;
24
29
public
function
__construct
(
$comment
)
30
{
31
$this->
setComment
(
$comment
);
32
}
33
37
public
function
getComment
()
38
{
39
return
$this->comment
;
40
}
41
45
public
function
setComment
(
$comment
)
46
{
47
$comment
= str_replace(
PHP_EOL
,
''
,
$comment
);
48
$this->
comment
= str_replace(
"\n"
,
''
,
$comment
);
49
}
50
57
public
function
__toString
()
58
{
59
return
$this->
getComment
() .
"\n"
;
60
}
61
}
ilSystemStyleLessComment\getComment
getComment()
Definition:
class.ilSystemStyleLessComment.php:37
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:57
PHP_EOL
PHP_EOL
Definition:
complexTest.php:5
ilSystemStyleLessComment\setComment
setComment($comment)
Definition:
class.ilSystemStyleLessComment.php:45
ilSystemStyleLessComment\$comment
$comment
Definition:
class.ilSystemStyleLessComment.php:23
comment
comment()
Definition:
comment.php:2
ilSystemStyleLessComment\__construct
__construct($comment)
ilSystemStyleLessComment constructor.
Definition:
class.ilSystemStyleLessComment.php:29
ilSystemStyleLessItem
Abstracts content of a less file.
Definition:
class.ilSystemStyleLessItem.php:9
ilSystemStyleLessComment
Capsules all data which is neither part of a variable or category structure in the less file...
Definition:
class.ilSystemStyleLessComment.php:15
php
Services
Style
System
classes
Less
class.ilSystemStyleLessComment.php
Generated on Thu Jan 16 2025 19:02:30 for ILIAS by
1.8.13 (using
Doxyfile
)