ultimix
jquery_media_1_0_0 Class Reference

Public Member Functions

 __construct ()
 pre_generation (&$Options)
 compile_media (&$Settings)

Data Fields

 $CachedMultyFS = false
 $PageJS = false
 $String = false

Detailed Description

Class loads audio player scripts.

Author
Dodonov A.A.

Definition at line 26 of file jquery_media.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

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

Definition at line 56 of file jquery_media.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__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Member Function Documentation

compile_media ( $Settings)

Function processes macro 'timer'.

Parameters
$Settings- Compilation parameters.
Returns
Code.
Exceptions
Exception- An exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 163 of file jquery_media.php.

{
try
{
$Code = $this->CachedMultyFS->get_template( __FILE__ , 'media.tpl' );
$Vars = $this->get_vars( $Settings );
$Code = $this->String->print_record( $Code , $Vars );
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 jquery_media.php.

{
try
{
$Path = '{http_host}/'._get_package_relative_path_ex( 'jquery::jquery_media' , 'last' );
$this->PageJS->add_javascript( "$Path/include/js/jquery.media.js" );
$this->PageJS->add_javascript( "$Path/include/js/jquery.media.autorun.js" );
}
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 jquery_media.php.

$PageJS = false

Definition at line 39 of file jquery_media.php.

$String = false

Definition at line 40 of file jquery_media.php.


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