Class miSubmitFieldsPlugin

Description

Handles submit fields

  • copyright: Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.

Located in /control/SubmitFieldsPlugin.php (line 13)

miViewPlugin
   |
   --miSubmitFieldsPlugin
Variable Summary
Method Summary
miSubmitFieldsPlugin __construct (miView $view, array $submitFields)
void assignSubmitFields ( $id)
void deleteSubmitFields (int $id)
void processActionStep (miAction $actionObj, string $actionStep)
void processSubmitFields (int $id)
Variables
mixed $_submitFields (line 25)

Array with the submit fields this plugin works on

The array has the following format $submitFields = array( array('fieldName' => '', 'namePrefixSave' => '', 'namePrefixWeb' => '', 'nameSuffix' => ''), array('fieldName' => '', 'namePrefixSave' => '', 'namePrefixWeb' => '', 'nameSuffix' => ''), ... );

  • access: protected

Inherited Variables

Inherited from miViewPlugin

miViewPlugin::$_view
Methods
Constructor __construct (line 34)

Constructs the submit fields hanlder

  • access: public
miSubmitFieldsPlugin __construct (miView $view, array $submitFields)
  • miView $view
  • array $submitFields: the submit fields

Redefinition of:
miViewPlugin::__construct()
Constructs the plugin
assignSubmitFields (line 45)

Assign the submit fields template variables as page elements

  • access: protected
void assignSubmitFields ( $id)
  • $id
deleteSubmitFields (line 86)

Delete all attached files

  • access: protected
void deleteSubmitFields (int $id)
  • int $id: the id of the deleted row
processActionStep (line 101)

If the action is one of View, Create or Edit assign the submit fields display vars

  • access: public
void processActionStep (miAction $actionObj, string $actionStep)
  • miAction $actionObj: action object, subclassed from miAction
  • string $actionStep: the action step

Redefinition of:
miViewPlugin::processActionStep()
Called by the action, indicating particluar step
processSubmitFields (line 67)

Processes the submit fields

  • throws: miException
  • access: protected
void processSubmitFields (int $id)
  • int $id: the id of the currently created/edited row

Inherited Methods

Inherited From miViewPlugin

miViewPlugin::__construct()
miViewPlugin::postProcessAction()
miViewPlugin::preProcessAction()
miViewPlugin::processActionStep()

Documentation generated on Thu, 08 May 2008 16:57:42 +0300 by phpDocumentor 1.4.1