ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSystemStyleLessVariable Class Reference
+ Inheritance diagram for ilSystemStyleLessVariable:
+ Collaboration diagram for ilSystemStyleLessVariable:

Public Member Functions

 __construct ($name, $value, $comment, $category_name, $references)
 ilSystemStyleLessVariable constructor. More...
 
 getName ()
 
 setName ($name)
 
 getValue ()
 
 setValue ($value)
 
 getComment ()
 
 setComment ($comment)
 
 getCategoryName ()
 
 setCategoryName ($category_name)
 
 getReferences ()
 
 setReferences ($references)
 
 __toString ()
 This function will be needed to write the variable back to the less file and restore it's initial structure in less. More...
 
- Public Member Functions inherited from ilSystemStyleLessItem
 __toString ()
 

Protected Attributes

 $name = ""
 
 $value = ""
 
 $comment = ""
 
 $category_name = ""
 
 $references = array()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemStyleLessVariable::__construct (   $name,
  $value,
  $comment,
  $category_name,
  $references 
)

ilSystemStyleLessVariable constructor.

Parameters
$name
$value
$comment
$category_name
$references

Definition at line 60 of file class.ilSystemStyleLessVariable.php.

References $category_name, $comment, $name, $references, $value, setCategoryName(), setComment(), setName(), setReferences(), and setValue().

+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ilSystemStyleLessVariable::__toString ( )

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

Returns
string

Definition at line 164 of file class.ilSystemStyleLessVariable.php.

References getComment(), and getValue().

165  {
166  $content = "";
167  if($this->getComment()){
168  $content .= "//** ".$this->getComment()."\n";
169  }
170  $content .= "@".$this->getName().":\t\t". $this->getValue().";\n";
171  return $content;
172  }
+ Here is the call graph for this function:

◆ getCategoryName()

ilSystemStyleLessVariable::getCategoryName ( )
Returns
string

Definition at line 128 of file class.ilSystemStyleLessVariable.php.

References $category_name.

◆ getComment()

ilSystemStyleLessVariable::getComment ( )
Returns
string

Definition at line 112 of file class.ilSystemStyleLessVariable.php.

References $comment.

Referenced by __toString().

+ Here is the caller graph for this function:

◆ getName()

ilSystemStyleLessVariable::getName ( )
Returns
string

Definition at line 72 of file class.ilSystemStyleLessVariable.php.

References $name.

◆ getReferences()

ilSystemStyleLessVariable::getReferences ( )
Returns
array

Definition at line 144 of file class.ilSystemStyleLessVariable.php.

References $references.

◆ getValue()

ilSystemStyleLessVariable::getValue ( )
Returns
string

Definition at line 88 of file class.ilSystemStyleLessVariable.php.

References $value.

Referenced by __toString().

+ Here is the caller graph for this function:

◆ setCategoryName()

ilSystemStyleLessVariable::setCategoryName (   $category_name)
Parameters
string$category_name

Definition at line 136 of file class.ilSystemStyleLessVariable.php.

References $category_name.

Referenced by __construct().

137  {
138  $this->category_name = $category_name;
139  }
+ Here is the caller graph for this function:

◆ setComment()

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

Definition at line 120 of file class.ilSystemStyleLessVariable.php.

References $comment, comment(), and PHP_EOL.

Referenced by __construct().

121  {
122  $this->comment = str_replace(PHP_EOL, '', $comment);
123  }
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:

◆ setName()

ilSystemStyleLessVariable::setName (   $name)
Parameters
string$name

Definition at line 80 of file class.ilSystemStyleLessVariable.php.

References $name.

Referenced by __construct().

81  {
82  $this->name = $name;
83  }
+ Here is the caller graph for this function:

◆ setReferences()

ilSystemStyleLessVariable::setReferences (   $references)
Parameters
array$references

Definition at line 152 of file class.ilSystemStyleLessVariable.php.

References $references.

Referenced by __construct().

153  {
154  $this->references = $references;
155  }
+ Here is the caller graph for this function:

◆ setValue()

ilSystemStyleLessVariable::setValue (   $value)
Parameters
string$value

: Fix this nasty hack to correct the icon-font-path

Definition at line 96 of file class.ilSystemStyleLessVariable.php.

References $value, and PHP_EOL.

Referenced by __construct().

97  {
101  if($value == "\"../../Services/UICore/lib/bootstrap-3.2.0/fonts/\""){
102  $this->value = "\"../../../../Services/UICore/lib/bootstrap-3.2.0/fonts/\"";
103  }else{
104  $this->value = str_replace(PHP_EOL, '', $value);;
105 
106  }
107  }
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
+ Here is the caller graph for this function:

Field Documentation

◆ $category_name

ilSystemStyleLessVariable::$category_name = ""
protected

◆ $comment

ilSystemStyleLessVariable::$comment = ""
protected

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

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

◆ $name

ilSystemStyleLessVariable::$name = ""
protected

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

Referenced by __construct(), getName(), and setName().

◆ $references

ilSystemStyleLessVariable::$references = array()
protected

Definition at line 50 of file class.ilSystemStyleLessVariable.php.

Referenced by __construct(), getReferences(), and setReferences().

◆ $value

ilSystemStyleLessVariable::$value = ""
protected

Definition at line 30 of file class.ilSystemStyleLessVariable.php.

Referenced by __construct(), getValue(), and setValue().


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