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 |
Definition at line 30 of file Resource.php.
static getCssUrl | ( | ) | [static] |
Get CSS URL
Definition at line 122 of file Resource.php.
static getImageUrl | ( | ) | [static] |
Get image URL
Definition at line 103 of file Resource.php.
static getJsUrl | ( | ) | [static] |
static getLibFileWithPath | ( | $ | className, |
$ | packageName = "" |
||
) | [static] |
Get openbiz library php file path by searching modules/package, /bin/package and /bin
string | $className |
Definition at line 332 of file Resource.php.
static getMessage | ( | $ | msgId, |
$ | params = array() |
||
) | [static] |
Get message from CONSTANT, translate and format it
string | $msgId | ID if constant |
array | $params | parameter for format (use vsprintf) |
Definition at line 88 of file Resource.php.
static getSmartyTemplate | ( | ) | [static] |
static getTplFileWithPath | ( | $ | templateFile, |
$ | packageName | ||
) | [static] |
Get openbiz template file path by searching modules/package, /templates
string | $className |
Definition at line 285 of file Resource.php.
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
string | $xmlFile |
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
string | $xmlObj | xml object |
Definition at line 248 of file Resource.php.
static getZendTemplate | ( | ) | [static] |
Get Zend Template
Definition at line 213 of file Resource.php.
static loadMessage | ( | $ | messageFile, |
$ | packageName = "" |
||
) | [static] |
Load message from file
string | $messageFile |
Definition at line 44 of file Resource.php.