Detailed Description
Class processes buttons macro.
- Author
- Dodonov A.A.
Definition at line 26 of file button_markup.php.
Constructor & Destructor Documentation
Constructor.
- Author
- Dodonov A.A.
Definition at line 55 of file button_markup.php.
{
try
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
$this->PageJS =
get_package(
'page::page_js' ,
'last' , __FILE__ );
$this->String =
get_package(
'string' ,
'last' , __FILE__ );
$this->Utilities =
get_package(
'utilities' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_component_button |
( |
& |
$Settings | ) |
|
Function processes macro 'component_button'.
- Parameters
-
| $Str | - String to process. |
| $Changed | - true if any of the page's elements was compiled. |
- Returns
- array( Processed string , Was the string changed ).
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 128 of file button_markup.php.
{
try
{
$Settings->set_undefined(
'label' ,
'label' );
$Settings->set_undefined(
'package_version' ,
'last' );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'component_button.tpl' );
$Code = $this->String->print_record( $Code ,
$Settings->get_raw_settings() );
$Path = $this->Utilities->get_package_path(
$Settings );
$Code = str_replace( '{path_to_image}' , "$Path/res/images/$Icon" , $Code );
return( $Code );
}
catch( Exception $e )
{
}
}
| compile_menu_button |
( |
& |
$Settings | ) |
|
Function compiles macro 'menu_button'.
- Parameters
-
| $Settings | - Compilation parameters. |
- Returns
- HTML code.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 218 of file button_markup.php.
{
try
{
$this->set_default_data_for_toolbar_button(
$Settings );
$Path = $this->Utilities->get_package_path(
$Settings );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'menu_button.tpl' );
$Code = $this->String->print_record( $Code ,
$Settings->get_raw_settings() );
return( str_replace( '{path_to_image}' , "$Path/res/images/$Icon" , $Code ) );
}
catch( Exception $e )
{
}
}
| compile_run_controller_and_remove_dom_button |
( |
& |
$Settings | ) |
|
Function compiles buttonv.
- Parameters
-
- Returns
- Compiled button.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 400 of file button_markup.php.
{
try
{
$this->set_default_data_for_toolbar_button(
$Settings );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'run_controller_and_remove_dom_button.tpl' );
$Code = $this->String->print_record( $Code ,
$Settings->get_raw_settings() );
$Path = $this->Utilities->get_package_path(
$Settings );
$Code = str_replace( '{path_to_image}' , $Path."/res/images/$Icon" , $Code );
return( $Code );
}
catch( Exception $e )
{
}
}
| compile_toggle_button |
( |
& |
$Settings | ) |
|
Function compiles button.
- Parameters
-
- Returns
- Compiled button.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 358 of file button_markup.php.
{
try
{
$this->set_default_data_for_toolbar_button(
$Settings );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'toggle_button.tpl' );
$Code = $this->String->print_record( $Code ,
$Settings->get_raw_settings() );
$Code = $this->set_toggle_button_icons( $Code ,
$Settings );
return( $Code );
}
catch( Exception $e )
{
}
}
| compile_toolbar_button |
( |
& |
$Settings | ) |
|
Function compiles button.
- Parameters
-
- Returns
- Compiled button.
- Exceptions
-
| Exception | - An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 262 of file button_markup.php.
{
try
{
$this->set_default_data_for_toolbar_button(
$Settings );
$Path = $this->Utilities->get_package_path(
$Settings );
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'toolbar_button.tpl' );
$Code = $this->String->print_record( $Code ,
$Settings->get_raw_settings() );
$Code = str_replace( '{path_to_image}' , "$Path/res/images/$Icon" , $Code );
return( $Code );
}
catch( Exception $e )
{
}
}
| pre_generation |
( |
|
$Options | ) |
|
Function executes before any page generating actions took place.
- Parameters
-
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 89 of file button_markup.php.
{
try
{
$Path = "{http_host}/"._get_package_relative_path_ex( 'gui::button_markup' , 'last' );
$this->PageJS->add_javascript( "$Path/include/js/button_markup.js" );
}
catch( Exception $e )
{
}
}
Field Documentation
The documentation for this class was generated from the following file: