Static Public Member Functions | Data Fields

Resource Class Reference

Static Public Member Functions

static loadMessage ($messageFile, $packageName="")
static getMessage ($msgId, $params=array())
static getImageUrl ()
static getCssUrl ()
static getJsUrl ()
static getSmartyTemplate ()
static getZendTemplate ()
static getXmlFileWithPath ($xmlObj)
static getTplFileWithPath ($templateFile, $packageName)
static getLibFileWithPath ($className, $packageName="")
static & getXmlArray ($xmlFile)
static getCurrentTheme ()

Data Fields

const DEFAULT_THEME = THEME_NAME

Detailed Description

Definition at line 30 of file Resource.php.


Member Function Documentation

static getCssUrl (  ) [static]

Get CSS URL

Returns:
string

Definition at line 122 of file Resource.php.

Here is the caller graph for this function:

static getImageUrl (  ) [static]

Get image URL

Returns:
string

Definition at line 103 of file Resource.php.

Here is the caller graph for this function:

static getJsUrl (  ) [static]

Get JavaScript(JS) URL

Returns:
string

Definition at line 140 of file Resource.php.

static getLibFileWithPath ( className,
packageName = "" 
) [static]

Get openbiz library php file path by searching modules/package, /bin/package and /bin

Parameters:
string$className
Returns:
string php library file path

Definition at line 332 of file Resource.php.

static getMessage ( msgId,
params = array() 
) [static]

Get message from CONSTANT, translate and format it

Parameters:
string$msgIdID if constant
array$paramsparameter for format (use vsprintf)
Returns:
string

Definition at line 88 of file Resource.php.

Here is the caller graph for this function:

static getSmartyTemplate (  ) [static]

Get smarty template

Returns:
Smarty smarty object

Definition at line 152 of file Resource.php.

static getTplFileWithPath ( templateFile,
packageName 
) [static]

Get openbiz template file path by searching modules/package, /templates

Parameters:
string$className
Returns:
string php library file path

Definition at line 285 of file Resource.php.

Here is the call graph for this function:

static& getXmlArray ( xmlFile ) [static]

Get Xml Array. If xml file has been compiled (has .cmp), load the cmp file as array; otherwise, compile the .xml to .cmp first new 2.2.3, .cmp files will be created in app/cache/metadata_cmp directory. replace '/' with '_' for example, /module/demo/BOEvent.xml has cmp file as _module_demo_BOEvent.xml

Parameters:
string$xmlFile
Returns:
array

Definition at line 416 of file Resource.php.

static getXmlFileWithPath ( xmlObj ) [static]

Get Xml file with path

Search the object metedata file as objname+.xml in metedata directories name convension: demo.BOEvent points to metadata/demo/BOEvent.xml new in 2.2.3, demo.BOEvent can point to modules/demo/BOEvent.xml

Parameters:
string$xmlObjxml object
Returns:
string xml config file path

Definition at line 248 of file Resource.php.

static getZendTemplate (  ) [static]

Get Zend Template

Returns:
Zend_View zend view template object

Definition at line 213 of file Resource.php.

static loadMessage ( messageFile,
packageName = "" 
) [static]

Load message from file

Parameters:
string$messageFile
Returns:
mixed

Definition at line 44 of file Resource.php.

Here is the call graph for this function:

Here is the caller graph for this function:


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