Detailed Description
Markup.
- Author
- Dodonov A.A.
Definition at line 26 of file context_set_markup.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 57 of file context_set_markup.php.
{
try
{
$this->CommonButtons =
get_package(
'gui::context_set::common_buttons' ,
'last' , __FILE__ );
$this->FormButtons =
get_package(
'gui::context_set::form_buttons' ,
'last' , __FILE__ );
$this->String =
get_package(
'string' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_options |
( |
& |
$Options, |
|
|
|
$Str, |
|
|
|
$Changed |
|
) |
| |
Function processes macro 'options'.
- Parameters
-
| $Options | - Some settings. |
| $Str | - Processing string. |
| $Changed | - true if any of the page's elements was compiled. |
- Returns
- Processed string.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 102 of file context_set_markup.php.
{
try
{
for( ; $Parameters = $this->String->get_macro_parameters( $Str , 'options' ) ; )
{
$this->MacroSettings->load_settings( $Parameters );
$Name = $this->MacroSettings->get_setting( 'name' );
$Value = $Options->get_setting( $Name , $Options->get_setting( 'default' , '0' ) );
$Str = str_replace( "{options:$Parameters}" , $Value , $Str );
$Changed = true;
}
return( array( $Str , $Changed ) );
}
catch( Exception $e )
{
}
}
| compile_view |
( |
& |
$Options, |
|
|
& |
$ContextSetSettings, |
|
|
|
$Str |
|
) |
| |
Function processes view.
- Parameters
-
| $Options | - Execution parameters. |
| $ContextSetSettings | - Execution parameters. |
| $Str | - View. |
- Returns
- View.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 155 of file context_set_markup.php.
{
try
{
if( $Options->get_setting( 'view' , 0 ) == 1 )
{
$Str = $this->CommonButtons->compile_buttons( $ContextSetSettings , $Options , $Str );
$Str = $this->FormButtons->compile_buttons( $ContextSetSettings , $Options , $Str );
$Changed = false;
list( $Str , $Changed ) = $this->
compile_options( $Options , $Str , $Changed );
}
return( $Str );
}
catch( Exception $e )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: