Public Member Functions | Static Public Member Functions

BizSystem Class Reference

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())

Detailed Description

Definition at line 40 of file BizSystem.php.


Constructor & Destructor Documentation

__destruct (  )

Destruct object: save object session variables

Returns:
void

Definition at line 91 of file BizSystem.php.


Member Function Documentation

static allowUserAccess ( resourceAction ) [static]

Check if user can access the given resource action

Parameters:
string$resourceActionresource action
Returns:
boolean true or false

Definition at line 280 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static clientProxy (  ) [static]

Get the ClientProxy object this static method wrapping the GetClientProxy method

Returns:
ClientProxy the ClientProxy object

Definition at line 208 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static configuration (  ) [static]

Get the Configuration object this static method wrapping the Configuration method

Returns:
Configuration the Configuration object

Definition at line 182 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static currentPageURL (  ) [static]

Get current page URL NOTE: NYU not yet used

Returns:
string current page URL

Definition at line 440 of file BizSystem.php.

static dbConnection ( dbName = null ) [static]

Get database connection

Parameters:
string$dbNamedatabase name
Returns:
Zend_Db_Adapter_Abstract database connection

Definition at line 529 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getClientProxy (  )

Get the ClientProxy object

Returns:
ClientProxy the ClientProxy object

Definition at line 192 of file BizSystem.php.

getConfiguration (  )

Get the Configuration object

Returns:
Configuration the Configuration object

Definition at line 166 of file BizSystem.php.

Here is the caller graph for this function:

getCurrentViewName (  )

Get the current view name

Returns:
string current view name

Definition at line 393 of file BizSystem.php.

Here is the call graph for this function:

getCurrentViewSet (  )

Get the current view set

Returns:
string current view set

Definition at line 416 of file BizSystem.php.

Here is the call graph for this function:

getDBConnection ( dbName = null )

Get the database connection object

Parameters:
string$dbname,databasename declared in config.xml
Returns:
Zend_Db_Adapter_Abstract

Definition at line 469 of file BizSystem.php.

Here is the call graph for this function:

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 671 of file BizSystem.php.

Here is the caller graph for this function:

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

Parameters:
string$var,macroname
string$key,macrokey
Returns:
string

Definition at line 542 of file BizSystem.php.

Here is the call graph for this function:

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

Get message resource enhanced by Jixian

Parameters:
<type>$msgid string id of message
<type>$params array array of parameters
Returns:
string message

Definition at line 711 of file BizSystem.php.

Here is the caller graph for this function:

static getObject ( objectName,
new = 0 
) [static]

Get the metadata object

Parameters:
string$objectNameobject name
Returns:
<object> the object

Definition at line 269 of file BizSystem.php.

Here is the caller graph for this function:

getObjectFactory (  )

Get the ObjectFactory object

Returns:
ObjectFactory the ObjectFactory object

Definition at line 113 of file BizSystem.php.

static getService ( service,
new = 0 
) [static]

Get the service object

Parameters:
string$serviceservice name
Returns:
object the service object

Definition at line 254 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getSessionContext (  )

Get the SessionContext object

Returns:
SessionContext the SessionContext object

Definition at line 139 of file BizSystem.php.

Here is the caller graph for this function:

static getSmartyTemplate (  ) [static]

Get smarty template

Returns:
Smarty smarty object

Definition at line 556 of file BizSystem.php.

Here is the caller graph for this function:

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 646 of file BizSystem.php.

Here is the caller graph for this function:

getTypeManager (  )

Get the TypeManager object

Returns:
TypeManager the TypeManager object

Definition at line 218 of file BizSystem.php.

Here is the call graph for this function:

static getUserProfile ( attribute = null ) [static]

Get user profile

Parameters:
string$attributeuser attribute
Returns:
array user profile array

Definition at line 311 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static getVersion (  ) [static]

Return the version of phpOpenBiz

Returns:
string

Definition at line 103 of file BizSystem.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

Parameters:
string$xmlFile
Returns:
array

Definition at line 698 of file BizSystem.php.

Here is the caller graph for this function:

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 630 of file BizSystem.php.

static getZendTemplate (  ) [static]

Get Zend Template

Returns:
Zend_View zend view template object

Definition at line 566 of file BizSystem.php.

Here is the caller graph for this function:

static initUserProfile ( userId ) [static]

Initialize User Profile

Parameters:
string$userId
Returns:
array Profile array

Definition at line 292 of file BizSystem.php.

Here is the call graph for this function:

static instance (  ) [static]

Create instant of BizSystem

Returns:
BizSystem instant of BizSystem

Definition at line 63 of file BizSystem.php.

Here is the caller graph for this function:

static log ( priority,
subject,
message 
) [static]

Log message to log file

Parameters:
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
Returns:
void

Definition at line 588 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static logError ( priority,
subject,
message,
fileName = NULL 
) [static]

Log message to log file

BizSystem $g_BizSystem

Parameters:
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$fileNamefile to save to
Returns:
void

Definition at line 614 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static objectFactory (  ) [static]

Get get the ObjectFactory object as static method this static method wrapping the GetObjectFactory method

Returns:
ObjectFactory the ObjectFactory object

Definition at line 129 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static sessionContext (  ) [static]

Get the SessionContext object this static method wrapping the GetObjectFactory method

Returns:
SessionContext the SessionContext object

Definition at line 156 of file BizSystem.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setCurrentViewName ( viewname )

Set the current view name

Parameters:
string$viewnamenew current view name

Definition at line 405 of file BizSystem.php.

Here is the call graph for this function:

setCurrentViewSet ( viewSet )

Set current view set

Parameters:
<type>$viewSet

Definition at line 428 of file BizSystem.php.

Here is the call graph for this function:

static typeManager (  ) [static]

Get the TypeManager object this static method wrapping the GetTypeManager method

Returns:
TypeManager the TypeManager object

Definition at line 243 of file BizSystem.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: