ultimix

- Main Page
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Data Fields

Public Member Functions | Data Fields
template_content_view_1_0_0 Class Reference

## Public Member Functions
| __construct ()
| pre_generation ($Options)
| view (&$Options)

## Data Fields
| $BlockSettings = false
| $CachedMultyFS = false
| $Security = false
| $TemplateContentAccess = false
| $String = false

## Detailed Description

Displaying template content.

Author
  Dodonov A.A.

Definition at line 26 of file template_content_view.php.

## Constructor & Destructor Documentation

__construct | ( |  | ) |

Constructor.

Author
  Dodonov A.A.

Definition at line 54 of file template_content_view.php.

{
try
{
$this->BlockSettings = get_package_object( 'settings::settings' , 'last' , __FILE__ );
$this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
$this->Security = get_package( 'security' , 'last' , __FILE__ );
$this->TemplateContentAccess = get_package( 'page::template_content::template_content_access' );
$this->String = get_package( 'string' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Member Function Documentation

pre_generation | ( |  | $Options | ) |

Function executes before any page generating actions took place.

Parameters

  $Options | - Settings.

Exceptions

  Exception | An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 88 of file template_content_view.php.

{
try
{
$PageJS = get_package( 'page::page_js' , 'last' , __FILE__ );
$PackagePath = _get_package_relative_path_ex(
'page::template_content::template_content_view' , 'last'
);
$PageJS->add_javascript( "{http_host}/$PackagePath/include/js/template_content_view.js" );
$Lang = get_package( 'lang' , 'last' , __FILE__ );
$Lang->include_strings_js( 'page::template_content::template_content_view' );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

view | ( | & | $Options | ) |

View loads and returns content.

Parameters

  $Options | - Name of the file with the template content.

Returns
  Template content.

Exceptions

  Exception | An exception of this type is thrown.

Author
  Dodonov A.A.

Definition at line 129 of file template_content_view.php.

{
try
{
if( $Options->get_setting( 'template' , false ) === false )
{
$ContextSet = get_package( 'gui::context_set' , 'last' , __FILE__ );
$ContextSet->execute( $Options , $this , __FILE__ );
return( $this->Output );
}
else
{
return( $this->TemplateContentAccess->get_content_ex( $Options ) );
}
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

## Field Documentation

$BlockSettings = false

Cached objects.

Author
  Dodonov A.A.

Definition at line 38 of file template_content_view.php.

$CachedMultyFS = false

Definition at line 39 of file template_content_view.php.

$Security = false

Definition at line 40 of file template_content_view.php.

$String = false

Definition at line 42 of file template_content_view.php.

$TemplateContentAccess = false

Definition at line 41 of file template_content_view.php.

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

- packages/page/packages/template_content/packages/template_content_view/template_content_view.php