|
array stdClass | $a = null |
| Any arguments required for the string. More...
|
|
string | $component = '' |
| The strings component. More...
|
|
bool | $forcedstring = false |
| A special boolean. More...
|
|
string | $identifier |
| The strings identifier.
|
|
string | $lang = null |
| The language to use when processing the string. More...
|
|
string | $string = null |
| The processed string (once processed)
|
|
◆ __construct()
lang_string::__construct |
( |
|
$identifier, |
|
|
|
$component = '' , |
|
|
|
$a = null , |
|
|
|
$lang = null |
|
) |
| |
Constructs a lang_string object.
This function should do as little processing as possible to ensure the best performance for strings that won't be used.
- Parameters
-
string | $identifier | The strings identifier |
string | $component | The strings component |
stdClass | array | $a | Any arguments the string requires |
string | $lang | The language to use when processing the string. |
- Exceptions
-
◆ __set_state()
lang_string::__set_state |
( |
| ) |
|
Magic __set_state method used for var_export.
- Return values
-
◆ __sleep()
Prepares the lang_string for sleep and stores only the forcedstring and string properties... the string cannot be regenerated so we need to ensure it is generated for this.
- Return values
-
◆ __toString()
lang_string::__toString |
( |
| ) |
|
Magic __toString method for printing a string.
- Return values
-
◆ get_component()
lang_string::get_component |
( |
| ) |
|
Returns the component.
- Return values
-
◆ get_identifier()
lang_string::get_identifier |
( |
| ) |
|
Returns the identifier.
- Return values
-
◆ get_string()
lang_string::get_string |
( |
| ) |
|
|
protected |
Processes the string.
This function actually processes the string, stores it in the string property and then returns it. You will notice that this function is VERY similar to the get_string method. That is because it is pretty much doing the same thing. However as this function is an upgrade it isn't as tolerant to backwards compatibility.
- Return values
-
- Exceptions
-
◆ out()
lang_string::out |
( |
|
$lang = null | ) |
|
Returns the string.
- Parameters
-
string | $lang | The langauge to use when processing the string |
- Return values
-
◆ $a
array stdClass lang_string::$a = null |
|
protected |
Any arguments required for the string.
Default null
◆ $component
string lang_string::$component = '' |
|
protected |
The strings component.
Default ''
◆ $forcedstring
bool lang_string::$forcedstring = false |
|
protected |
A special boolean.
If set to true then the object has been woken up and cannot be regenerated. If this is set then $this->string MUST be used.
◆ $lang
string lang_string::$lang = null |
|
protected |
The language to use when processing the string.
Default null
The documentation for this class was generated from the following file: