ultimix
colorbox_1_0_0 Class Reference

Public Member Functions

 __construct ()
 pre_generation ($Options)
 view ($Options)
 compile_colorbox (&$Settings)

Data Fields

 $CachedMultyFS = false
 $PageCSS = false
 $PageJS = false

Detailed Description

Class loads paginator3000 component.

Author
Dodonov A.A.

Definition at line 26 of file colorbox.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 56 of file colorbox.php.

{
try
{
$this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
$this->PageCSS = get_package( 'page::page_css' , 'last' , __FILE__ );
$this->PageJS = get_package( 'page::page_js' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Member Function Documentation

compile_colorbox ( $Settings)

Function processes macro 'colorbox'.

Parameters
$Settings- Settings.
Returns
Processed string.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 154 of file colorbox.php.

{
try
{
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'colorbox.tpl' );
$Selector = $Settings->get_setting( 'selector' );
$Code = str_replace( '{selector}' , $Selector , $Code );
return( $Code );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
pre_generation (   $Options)

Function executes before any page generating actions took place.

Parameters
$Options- Settings.
Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 88 of file colorbox.php.

{
try
{
$PackagePath = '{http_host}/'._get_package_relative_path_ex( 'gui::colorbox' , '1.0.0' );
$this->PageJS->add_javascript( "$PackagePath/include/js/jquery.colorbox-min.js" );
$this->PageCSS->add_stylesheet( "$PackagePath/res/css/colorbox.css" );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
view (   $Options)

View for the scripting library.

Parameters
$Options- not used.
Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 120 of file colorbox.php.

{
try
{
return( '' );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Field Documentation

$CachedMultyFS = false

Cached packages.

Author
Dodonov A.A.

Definition at line 38 of file colorbox.php.

$PageCSS = false

Definition at line 39 of file colorbox.php.

$PageJS = false

Definition at line 40 of file colorbox.php.


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