ultimix
ad_manager_view_1_0_0 Class Reference

Public Member Functions

 __construct ()
 common_view ($Options)
 view ($Options)

Data Fields

 $Output
 $CachedMultyFS = false
 $String = false

Detailed Description

This class provides component visualisation routine.

Author
Dodonov A.A.

Definition at line 26 of file ad_manager_view.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Author
Dodonov A.A.

Definition at line 63 of file ad_manager_view.php.

{
try
{
$this->CachedMultyFS = get_package( 'cached_multy_fs' , 'last' , __FILE__ );
$this->String = get_package( 'string' , 'last' , __FILE__ );
$PageCSS = get_package( 'page::page_css' , 'last' , __FILE__ );
$Path = _get_package_relative_path_ex( 'ad::ad_manager::ad_manager_view' , 'last' );
$PageCSS->add_stylesheet( "{http_host}/$Path/res/css/ad_manager_view.css" );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Member Function Documentation

common_view (   $Options)

Function draws component.

Parameters
$Options- Settings.
Returns
HTML code of the компонента.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 189 of file ad_manager_view.php.

{
try
{
list( $Campaigns , $Banners ) = $this->get_campaigns_and_banners();
foreach( $Campaigns as $i => $Campaign )
{
$this->compile_campaign( $Campaign , $Banners );
}
$Template = $this->CachedMultyFS->get_template( __FILE__ , 'campaigns_list.tpl' );
$this->Output = str_replace( '{output}' , $this->Output , $Template );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
view (   $Options)

Function draws component.

Parameters
$Options- Settings.
Returns
HTML code of the компонента.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 232 of file ad_manager_view.php.

{
try
{
$ContextSet = get_package_object( 'gui::context_set' , 'last' , __FILE__ );
$ContextSet->add_context( dirname( __FILE__ ).'/conf/cfcx_ad_manager_view_common_view' );
$ContextSet->execute( $Options , $this , __FILE__ );
return( $this->Output );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Field Documentation

$CachedMultyFS = false

Cached objects.

Author
Dodonov A.A.

Definition at line 50 of file ad_manager_view.php.

$Output

Display function's result.

Author
Dodonov A.A.

Definition at line 38 of file ad_manager_view.php.

$String = false

Definition at line 51 of file ad_manager_view.php.


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