Destruct object: save object session variables
API Tags:
boolean AllowUserAccess(
string
$res_action
)
|
|
Check if user can access the given resource action
Parameters:
|
string |
$res_action: |
resource action |
API Tags:
| Return: | true or false |
| Access: | public |
ClientProxy ClientProxy(
)
|
|
Get the ClientProxy object this static method wrapping the GetClientProxy method
API Tags:
| Return: | the ClientProxy object |
| Static: | |
| Access: | public |
Configuration Configuration(
)
|
|
Get the Configuration object this static method wrapping the Configuration method
API Tags:
| Return: | the Configuration object |
| Static: | |
| Access: | public |
Get current page URL
API Tags:
| Return: | current page URL |
| Static: | |
| Access: | public |
ClientProxy GetClientProxy(
)
|
|
Get the ClientProxy object
API Tags:
| Return: | the ClientProxy object |
| Access: | public |
Configuration GetConfiguration(
)
|
|
Get the Configuration object
API Tags:
| Return: | the Configuration object |
| Access: | public |
string GetCurrentViewName(
)
|
|
Get the current view name
API Tags:
| Return: | current view name |
| Access: | public |
string GetCurrentViewSet(
)
|
|
Get the current view set
API Tags:
| Return: | current view set |
| Access: | public |
Zend_DB_Adapter GetDBConnection(
[mixed
$dbname = null], string
$dbname,
)
|
|
Get the database connection object
Parameters:
|
string |
$dbname,: |
database name declared in config.xml |
API Tags:
string GetLibFileWithPath(
string
$className, [mixed
$packageName = ""]
)
|
|
Get openbiz library php file path by searching modules/package, /bin/package and /bin
Parameters:
API Tags:
| Return: | php library file path |
| Static: | |
| Access: | public |
string GetMacroValue(
mixed
$var, mixed
$key, string
$var,, string
$key,
)
|
|
Evaluate macro, this method can only be used to get profile in 2.0 For example, @macro_var:macro_key. i.e. @profile:ROLE
Parameters:
|
string |
$var,: |
macro name |
|
string |
$key,: |
macro key |
API Tags:
string GetMessage(
$msgid, [
$params = array()]
)
|
|
Get message resource enhanced by Jixian
Parameters:
|
|
$msgid: |
string id of message |
|
|
$params: |
array array of parameters |
API Tags:
| Return: | message |
| Static: | |
| Access: | public |
ObjectFactory GetObjectFactory(
)
|
|
Get the ObjectFactory object
API Tags:
| Return: | the ObjectFactory object |
| Access: | public |
GetService(
string
$service, [mixed
$new = 0]
)
|
|
Get the service object
Parameters:
|
string |
$service: |
service name |
API Tags:
| Return: | the service object |
| Access: | public |
SessionContext GetSessionContext(
)
|
|
Get the SessionContext object
API Tags:
| Return: | the SessionContext object |
| Access: | public |
Smarty GetSmartyTemplate(
)
|
|
Get smarty template
API Tags:
| Return: | smarty object |
| Static: | |
| Access: | public |
string GetTplFileWithPath(
mixed
$templateFile, mixed
$packageName, string
$className
)
|
|
Get openbiz template file path by searching modules/package, /templates
Parameters:
API Tags:
| Return: | php library file path |
| Static: | |
| Access: | public |
TypeManager GetTypeManager(
)
|
|
Get the TypeManager object
API Tags:
| Return: | the TypeManager object |
| Access: | public |
array GetUserProfile(
[string
$attribute = null]
)
|
|
Get user profile
Parameters:
|
string |
$attribute: |
user attribute |
API Tags:
| Return: | user profile array |
| Access: | public |
array &GetXmlArray(
string
$xmlFile
)
|
|
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:
API Tags:
string GetXmlFileWithPath(
string
$xmlobj
)
|
|
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 |
$xmlobj: |
xml object |
API Tags:
| Return: | xml config file path |
| Static: | |
| Access: | public |
Zend_View GetZendTemplate(
)
|
|
Get Zend Template
API Tags:
| Return: | zend view template object |
| Static: | |
| Access: | public |
array InitUserProfile(
string
$userId
)
|
|
Initialize User Profile
Parameters:
API Tags:
| Return: | Profile array |
| Access: | public |
Create instant of BizSystem
API Tags:
| Return: | instant of BizSystem |
| Static: | |
| Access: | public |
void log(
mixed
$priority, mixed
$subject, mixed
$message, integer
$priority., string
$subject., string
$message., string
$file_name
)
|
|
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 |
|
string |
$file_name: |
file to save to |
API Tags:
void logError(
mixed
$priority, mixed
$subject, mixed
$message, [mixed
$file_name = NULL]
)
|
|
API Tags:
ObjectFactory ObjectFactory(
)
|
|
Get get the ObjectFactory object as static method this static method wrapping the GetObjectFactory method
API Tags:
| Return: | the ObjectFactory object |
| Static: | |
| Access: | public |
SessionContext SessionContext(
)
|
|
Get the SessionContext object this static method wrapping the GetObjectFactory method
API Tags:
| Return: | the SessionContext object |
| Static: | |
| Access: | public |
void SetCurrentViewName(
string
$viewname
)
|
|
Set the current view name
Parameters:
|
string |
$viewname: |
new current view name |
API Tags:
void SetCurrentViewSet(
$viewSet
)
|
|
Set current view set
Parameters:
API Tags:
TypeManager TypeManager(
)
|
|
Get the TypeManager object this static method wrapping the GetTypeManager method
API Tags:
| Return: | the TypeManager object |
| Static: | |
| Access: | public |