Public Member Functions | |
__destruct () | |
getObjectFactory () | |
getSessionContext () | |
getConfiguration () | |
getClientProxy () | |
getTypeManager () | |
getCurrentViewName () | |
setCurrentViewName ($viewname) | |
getCurrentViewSet () | |
setCurrentViewSet ($viewSet) | |
removeDBConnection ($dbName=null) | |
getDBConnection ($dbName=null) | |
Static Public Member Functions | |
static | instance () |
static | getVersion () |
static | objectFactory () |
static | sessionContext () |
static | configuration () |
static | clientProxy () |
static | typeManager () |
static | getService ($service, $new=0) |
static | getObject ($objectName, $new=0) |
static | allowUserAccess ($resourceAction) |
static | initUserProfile ($userId) |
static | getUserProfile ($attribute=null) |
static | getUserPreference ($attribute=null) |
static | getProfileName ($account_id, $type='full') |
static | getProfileEmail ($account_id) |
static | getProfileId ($account_id) |
static | getDefaultPerm ($group) |
static | currentPageURL () |
static | resetDBConnection ($dbName=null) |
static | dbConnection ($dbName=null) |
static | getMacroValue ($var, $key) |
static | getSmartyTemplate () |
static | getZendTemplate () |
static | log ($priority, $subject, $message) |
static | logError ($priority, $subject, $message, $fileName=NULL) |
static | getXmlFileWithPath ($xmlObj) |
static | getCompiledFileWithPath ($xmlObj) |
static | getTplFileWithPath ($templateFile, $packageName) |
static | loadClass ($className, $packageName='') |
static | getLibFileWithPath ($className, $packageName="") |
static & | getXmlArray ($xmlFile) |
static | getMessage ($msgid, $params=array()) |
Definition at line 40 of file BizSystem.php.
__destruct | ( | ) |
Destruct object: save object session variables
Definition at line 91 of file BizSystem.php.
static allowUserAccess | ( | $ | resourceAction ) | [static] |
Check if user can access the given resource action
string | $resourceAction | resource action |
Definition at line 280 of file BizSystem.php.
static clientProxy | ( | ) | [static] |
Get the ClientProxy object this static method wrapping the GetClientProxy method
Definition at line 208 of file BizSystem.php.
static configuration | ( | ) | [static] |
Get the Configuration object this static method wrapping the Configuration method
Definition at line 182 of file BizSystem.php.
static currentPageURL | ( | ) | [static] |
Get current page URL NOTE: NYU not yet used
Definition at line 440 of file BizSystem.php.
static dbConnection | ( | $ | dbName = null ) |
[static] |
Get database connection
string | $dbName | database name |
Definition at line 529 of file BizSystem.php.
getClientProxy | ( | ) |
Get the ClientProxy object
Definition at line 192 of file BizSystem.php.
getConfiguration | ( | ) |
Get the Configuration object
Definition at line 166 of file BizSystem.php.
getCurrentViewName | ( | ) |
Get the current view name
Definition at line 393 of file BizSystem.php.
getCurrentViewSet | ( | ) |
Get the current view set
Definition at line 416 of file BizSystem.php.
getDBConnection | ( | $ | dbName = null ) |
Get the database connection object
string | $dbname,database | name declared in config.xml |
Definition at line 469 of file BizSystem.php.
static getLibFileWithPath | ( | $ | className, |
$ | packageName = "" |
||
) | [static] |
Get openbiz library php file path by searching modules/package, /bin/package and /bin
string | $className |
Definition at line 671 of file BizSystem.php.
static getMacroValue | ( | $ | var, |
$ | key | ||
) | [static] |
Evaluate macro, this method can only be used to get profile in 2.0 For example, :macro_key. i.e. :ROLE
string | $var,macro | name |
string | $key,macro | key |
Definition at line 542 of file BizSystem.php.
static getMessage | ( | $ | msgid, |
$ | params = array() |
||
) | [static] |
Get message resource enhanced by Jixian
<type> | $msgid string id of message |
<type> | $params array array of parameters |
Definition at line 711 of file BizSystem.php.
static getObject | ( | $ | objectName, |
$ | new = 0 |
||
) | [static] |
Get the metadata object
string | $objectName | object name |
Definition at line 269 of file BizSystem.php.
getObjectFactory | ( | ) |
Get the ObjectFactory object
Definition at line 113 of file BizSystem.php.
static getService | ( | $ | service, |
$ | new = 0 |
||
) | [static] |
Get the service object
string | $service | service name |
Definition at line 254 of file BizSystem.php.
getSessionContext | ( | ) |
Get the SessionContext object
Definition at line 139 of file BizSystem.php.
static getSmartyTemplate | ( | ) | [static] |
Get smarty template
Definition at line 556 of file BizSystem.php.
static getTplFileWithPath | ( | $ | templateFile, |
$ | packageName | ||
) | [static] |
Get openbiz template file path by searching modules/package, /templates
string | $className |
Definition at line 646 of file BizSystem.php.
getTypeManager | ( | ) |
Get the TypeManager object
Definition at line 218 of file BizSystem.php.
static getUserProfile | ( | $ | attribute = null ) |
[static] |
Get user profile
string | $attribute | user attribute |
Definition at line 311 of file BizSystem.php.
static getVersion | ( | ) | [static] |
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 698 of file BizSystem.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 630 of file BizSystem.php.
static getZendTemplate | ( | ) | [static] |
Get Zend Template
Definition at line 566 of file BizSystem.php.
static initUserProfile | ( | $ | userId ) | [static] |
Initialize User Profile
string | $userId |
Definition at line 292 of file BizSystem.php.
static instance | ( | ) | [static] |
Create instant of BizSystem
Definition at line 63 of file BizSystem.php.
static log | ( | $ | priority, |
$ | subject, | ||
$ | message | ||
) | [static] |
Log message to log file
integer | $priority,. | it can be one of following value LOG_EMERG system is unusable = 1 LOG_ALERT action must be taken immediately = LOG_EMERG LOG_CRIT critical conditions = LOG_EMERG LOG_ERR error conditions = 4 LOG_WARNING warning conditions = 5 LOG_NOTICE normal, but significant, condition = 6 LOG_INFO informational message = LOG_NOTICE LOG_DEBUG debug-level message = LOG_NOTICE ### So LOG_EMERG, LOG_ERR, LOG_WARNING and LOG_DEBUG are valid inputs ### |
string | $subject,. | the log subject decided by caller function |
string | $message,. | the message to be logged in log file |
Definition at line 588 of file BizSystem.php.
static logError | ( | $ | priority, |
$ | subject, | ||
$ | message, | ||
$ | fileName = NULL |
||
) | [static] |
Log message to log file
BizSystem $g_BizSystem
integer | $priority,. | it can be one of following value LOG_EMERG system is unusable = 1 LOG_ALERT action must be taken immediately = LOG_EMERG LOG_CRIT critical conditions = LOG_EMERG LOG_ERR error conditions = 4 LOG_WARNING warning conditions = 5 LOG_NOTICE normal, but significant, condition = 6 LOG_INFO informational message = LOG_NOTICE LOG_DEBUG debug-level message = LOG_NOTICE ### So LOG_EMERG, LOG_ERR, LOG_WARNING and LOG_DEBUG are valid inputs ### |
string | $subject,. | the log subject decided by caller function |
string | $message,. | the message to be logged in log file |
string | $fileName | file to save to |
Definition at line 614 of file BizSystem.php.
static objectFactory | ( | ) | [static] |
Get get the ObjectFactory object as static method this static method wrapping the GetObjectFactory method
Definition at line 129 of file BizSystem.php.
static sessionContext | ( | ) | [static] |
Get the SessionContext object this static method wrapping the GetObjectFactory method
Definition at line 156 of file BizSystem.php.
setCurrentViewName | ( | $ | viewname ) |
Set the current view name
string | $viewname | new current view name |
Definition at line 405 of file BizSystem.php.
setCurrentViewSet | ( | $ | viewSet ) |
Set current view set
<type> | $viewSet |
Definition at line 428 of file BizSystem.php.
static typeManager | ( | ) | [static] |
Get the TypeManager object this static method wrapping the GetTypeManager method
Definition at line 243 of file BizSystem.php.