class CRM_Core_QuickForm_Action_Upload extends CRM_Core_QuickForm_Action

Redefine the upload action.

Properties

protected object $_stateMachine Reference to the state machine i belong to. from CRM_Core_QuickForm_Action
protected array $_uploadNames The array of uploaded file names.
protected string $_uploadDir The directory to store the uploaded files.

Methods

__construct(object $stateMachine, string $uploadDir, array $uploadNames)

Class constructor.

popUserContext()

Returns the user to the top of the user context stack.

upload(CRM_Core_Form $page, object $data, string $pageName, string $uploadName)

Upload and move the file if valid to the uploaded directory.

perform(CRM_Core_Form $page, string $actionName)

Processes the request.

mixed
realPerform(CRM_Core_Form $page, string $actionName)

Real perform.

Details

at line 61
CRM_Core_QuickForm_Action __construct(object $stateMachine, string $uploadDir, array $uploadNames)

Class constructor.

Parameters

object $stateMachine Reference to state machine object.
string $uploadDir Directory to store the uploaded files.
array $uploadNames Element names of the various uploadable files.

Return Value

CRM_Core_QuickForm_Action

popUserContext()

Returns the user to the top of the user context stack.

at line 80
upload(CRM_Core_Form $page, object $data, string $pageName, string $uploadName)

Upload and move the file if valid to the uploaded directory.

Parameters

CRM_Core_Form $page The CRM_Core_Form object.
object $data The QFC data container.
string $pageName The name of the page which index the data container with.
string $uploadName The name of the uploaded file.

at line 127
perform(CRM_Core_Form $page, string $actionName)

Processes the request.

Parameters

CRM_Core_Form $page CRM_Core_Form the current form-page.
string $actionName Current action name, as one Action object can serve multiple actions.

at line 149
mixed realPerform(CRM_Core_Form $page, string $actionName)

Real perform.

Parameters

CRM_Core_Form $page
string $actionName

Return Value

mixed