PHP Function Reference

There are additional functions available to PHP developers through extensions that can be specified in the php.ini file. These functions are categorized by the extension that provides the function. The following reference tables show the defined paths to available attributes in the global context zones.

Using Active Content Filtering (ACF) programmatically

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.ACFExtension
acf_processSecurity
acf_process_streamSecurity
acf_validateSecurity
acf_validate_streamSecurity

Protecting against Cross Site Request Forgery (CSRF) programmatically

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.CSRFExtension
csrf_protected_form_fieldSecurity
csrf_protected_uriSecurity

Working with HTTP resources

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.ConnectionExtension
connection_getHTTP requests
connection_postHTTP requests

Using security programmatically

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.LoginServiceExtension
zero_loginSecurity
zero_logoutSecurity

Working with data access

These functions require the following extension declaration in the config/php.ini:

extension = zero.data.php.QueryExtension
dataBeginTransactionData access
dataBlobGetBytesData access
dataBlobLengthData access
dataBlobSetBytesData access
dataClobGetStringData access
dataClobLengthData access
dataCommitTransactionData access
dataEndTransactionData access
dataExecData access
dataExecOptData access
dataInsertData access
dataIsInTransactionData access
dataIsValidData access
dataIteratorHasNextData access
dataIteratorNextData access
dataIteratorRemoveData access
dataLastErrorData access
dataManagerData access
dataNewResultHandlerData access
dataQueryData access
dataQueryArrayData access
dataQueryArrayByFactoryData access
dataQueryFirstData access
dataQueryFirstByFactoryData access
dataQueryIteratorData access
dataQueryIteratorByFactoryData access
dataQueryResultsData access
dataResultSetAbsoluteData access
dataResultSetCloseData access
dataResultSetGetColumnCountData access
dataResultSetGetColumnNameData access
dataResultSetGetObjectData access
dataResultSetGetRowData access
dataResultSetNextData access
dataResultSetPreviousData access
dataRollbackTransactionData access
dataSourceData access
dataStringAsByteArrayData access
dataTransactionData access
dataUpdateData access
dataUpdateManyData access

Utility Functions

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.URIUtilsExtension
get_absolute_uriWebSphere sMash specific
get_relative_uriWebSphere sMash specific
get_requested_uriWebSphere sMash specific

Working with XML

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.XMLExtension
xml_decodeXML
xml_encodeXML

Developing a WebSphere sMash application

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.ZeroExtension
DOCROOTWebSphere sMash specific
fire_eventWebSphere sMash specific
getVFileWebSphere sMash specific
listFilesWebSphere sMash specific
render_viewWebSphere sMash specific
zcontainsWebSphere sMash specific
zdeleteWebSphere sMash specific
zdumpWebSphere sMash specific
zgetWebSphere sMash specific
zlistWebSphere sMash specific
zlist_allWebSphere sMash specific
zpostWebSphere sMash specific
zputWebSphere sMash specific

PHP/Groovy bridge

These functions require the following extension declaration in the config/php.ini:

extension = com.ibm.p8.engine.xapi.groovy.GroovyExtensionLibrary
groovy_create_closureWebSphere sMash specific
groovy_evalWebSphere sMash specific
groovy_importWebSphere sMash specific

PHP/Java bridge

java_importWebSphere sMash specific

Working with JSON data

These functions require the following extension declaration in the config/php.ini:

extension = zero.php.JSONExtension
json_decodeWorking with RESTful services
json_encodeWorking with RESTful services