ultimix
jqgrid_1_0_0 Class Reference

Public Member Functions

 __construct ()
 pre_generation ($Options)

Data Fields

 $PageCSS = false
 $PageJS = false

Detailed Description

Class loads jqGrid.

Author
Dodonov A.A.

Definition at line 26 of file jqgrid.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

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

Definition at line 55 of file jqgrid.php.

{
try
{
$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

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 86 of file jqgrid.php.

{
try
{
$Path = "{http_host}/"._get_package_relative_path_ex( 'gui::jqgrid' , '1.0.0::1.0.0' );
$this->PageJS->add_javascript( "$Path/include/js/i18n/grid.locale-{locale}.js" );
$this->PageJS->add_javascript( "$Path/include/js/jquery.jqGrid.min.js" );
$this->PageJS->add_javascript( "$Path/include/js/jqgrid.autorun.js" );
$this->PageCSS->add_stylesheet( "{http_host}/$Path/res/css/ui.jqgrid.css" );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Field Documentation

$PageCSS = false

Cached packages.

Author
Dodonov A.A.

Definition at line 38 of file jqgrid.php.

$PageJS = false

Definition at line 39 of file jqgrid.php.


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