Solar_App_Hello::_isProcess()

protected bool Solar_App_Hello::_isProcess ( string $type = NULL , string $process_key = NULL )

Whether or not user requested a specific process within the action.

Inherited from Solar_Controller_Page.

Parameters

  • (string) $type: The process type; for example, 'save', 'delete', 'preview', etc. If empty, returns true if any process type was posted.

  • (string) $process_key: If not empty, check against this Solar_Request::post() key instead $this->_process_key. Default null.

Returns

  • (bool)

Description

Whether or not user requested a specific process within the action.

By default, looks for $process_key in Solar_Request::post() to get the value of the process request.

Checks against "PROCESS_$type" locale string for matching. For example, $this->_isProcess('save') checks Solar_Request::post('process') against $this->locale('PROCESS_SAVE').



Local