Detailed Description
Class provides records change history manupulation routine.
- Author
- Dodonov A.A.
Definition at line 26 of file change_history_markup.php.
Constructor & Destructor Documentation
Constructor.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 58 of file change_history_markup.php.
{
try
{
$this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
'database::change_history::change_history_view' , 'last' , __FILE__
);
$this->PageComposer =
get_package(
'page::page_composer' ,
'last' , __FILE__ );
$this->String =
get_package(
'string' ,
'last' , __FILE__ );
}
catch( Exception $e )
{
}
}
Member Function Documentation
| compile_history_button |
( |
& |
$BlockSettings | ) |
|
Function compiles history.
- Parameters
-
| $BlockSettings | - Parameters. |
- Returns
- Compiled history.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 138 of file change_history_markup.php.
{
try
{
$id = $BlockSettings->get_setting( 'id' );
$ObjectType = $BlockSettings->get_setting( 'object_type' );
$Code = $this->ChangeHistoryView->get_changes_grid( $id , $ObjectType );
$Code = str_replace( '{id}' , $id , $Code );
return( $Code );
}
catch( Exception $e )
{
}
}
| get_button_template |
( |
& |
$BlockSettings | ) |
|
Function processes macro 'history_button'.
- Parameters
-
| $BlockSettings | - Macro parameters. |
- Returns
- Button template.
- Exceptions
-
| Exception | An exception of this type is thrown. |
- Author
- Dodonov A.A.
Definition at line 97 of file change_history_markup.php.
{
try
{
switch( $BlockSettings->get_setting( 'type' , '' ) )
{
case( 'href' ):$FileName = 'href_history_button.tpl';break;
default:$FileName = 'image_history_button_48.tpl';break;
}
return( $this->CachedMultyFS->get_template( __FILE__ , $FileName ) );
}
catch( Exception $e )
{
}
}
Field Documentation
| $ChangeHistoryView = false |
The documentation for this class was generated from the following file: