phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Data Fields
PntObjectSaveAction Class Reference

Inherits PntAction.

Inherited by ObjectSaveAction.

Public Member Functions

 handleRequest ()
 
 initialize ()
 
 initForCopy ()
 
 preprocessObject ()
 
 convertCommitAndCheck ()
 
 finishObject ($asSubaction=false)
 
 checkAccess ()
 
 convertAndValidateFormValues (&$formTexts)
 
 commitFormValues (&$formTexts)
 
 getSaveErrorMessages ()
 
 verifyDelete ()
 
 saveObject ()
 
 recurseCopyObject ()
 
 getOriginal ()
 
 getOtherObjectsToSave ()
 
 finishFailure ()
 
 getFailureHandler ()
 
 shouldProcess ($formNavValue, $formKey=null)
 
 finishSuccess ($obj)
 
 getBackToOriginRequestData ($obj)
 
 getErrorMessage ()
 
 getErrorInformation ()
 
 getSaveErrorMessage ()
 
 getEditType ()
 
 getOKMessage ($obj)
 
 getActionDoneMessage ($obj)
 
 processMtoNproperties ()
 
 processMtoNRelValue ($formMtoNRelValue)
 
 checkProcessFormValue (&$formNavValue)
 
 processSubsaveActions ()
 
 addSubsaveActionError ($subAction)
 
- Public Member Functions inherited from PntAction
 __construct ($whole, $requestData)
 
 beginTransaction ()
 
 commit ()
 
 rollBack ()
 
 finishAndRedirectToContext ($obj, $message)
 
 checkActionTicket ()
 
 checkRequestMethod ()
 
 rerouteErrorHandling ()
 
 restoreErrorHandling ()
 
 handleError ($level, $message, $filePath, $lineNumber)
 
- Public Member Functions inherited from PntRequestHandler
 __construct ($whole, $requestData)
 
 getDir ()
 
 getDomainDir ($type=null)
 
 getBaseUrl ()
 
 getConverter ()
 
 getDebugMode ()
 
 initForHandleRequest ()
 
 startSession ()
 
 getContextHref ($footprintId)
 
 getController ()
 
 getScout ()
 
 getGlobalFilters ()
 
 forwardRequest ($requestData, $information=null)
 
 redirectRequest ($requestData, $information=null, $dir=null)
 
 queryStringFrom ($requestData, $param=null)
 
 getRequestParam ($key)
 
 getReqParam ($key, $asHtml=false)
 
 htOut ($aString)
 
 getRequestHandler ($requestData, $dir=null)
 
 tryUseHandlerClass ($handlerClass, &$attempted)
 
 getHandlersTriedString ($attempted)
 
 __toString ()
 
 toString ()
 
 getLabel ()
 
 getName ()
 
 getThisPntHandlerName ()
 
 getInformation ()
 
 getEventualItemNotFoundMessage ()
 
 setInformation ($value)
 
 getTypeLabel ()
 
 getType ()
 
 checkAlphaNumeric ($value)
 
 getTryUseClassTryParams ($className, $dir)
 
 getIncludesDir ()
 
 tryUseClass ($className, $dir)
 
 useClass ($className, $dir)
 
 getTypeClassDescriptor ()
 
 getRequestedObject ()
 
 setRequestedObject ($value)
 
 getFormTexts ()
 
 getFormTextPaths ()
 
 setFormTexts ($value)
 
 getMarkedItemsCollector ()
 

Data Fields

 $objectSaved = false
 
 $copy = false
 
- Data Fields inherited from PntAction
 $inTransaction = false
 
- Data Fields inherited from PntRequestHandler
 $whole
 
 $information
 
 $controller
 
 $requestData
 
 $request
 

Member Function Documentation

addSubsaveActionError (   $subAction)
checkAccess ( )
checkProcessFormValue ( $formNavValue)

Check with the SecurityManager if the property setted by the $formNavValue may be edited. If not set the error from the SecurityManager on the MtoNRelValue and return the error. Checking if the object may be created or edited is not repeated here

Parameters
PntFormNavValue$formNavValueto be checked
Returns
String error message
commitFormValues ( $formTexts)
convertAndValidateFormValues ( $formTexts)
convertCommitAndCheck ( )
finishFailure ( )
finishObject (   $asSubaction = false)
finishSuccess (   $obj)
getActionDoneMessage (   $obj)
getBackToOriginRequestData (   $obj)
getEditType ( )
getErrorInformation ( )
getErrorMessage ( )
getFailureHandler ( )
getOKMessage (   $obj)
getOriginal ( )
getOtherObjectsToSave ( )
getSaveErrorMessage ( )
getSaveErrorMessages ( )
handleRequest ( )
initForCopy ( )
initialize ( )
preprocessObject ( )
processMtoNproperties ( )
processMtoNRelValue (   $formMtoNRelValue)

new MtoNPropertyPage support

processSubsaveActions ( )
recurseCopyObject ( )

Copy dependents. Be aware that values may have been committed to dependents before this recursive copying takes place, and getOtherObjectsToSave may have cached those, als well as the properties. Override this method if you need to fix that.

saveObject ( )
shouldProcess (   $formNavValue,
  $formKey = null 
)
verifyDelete ( )

Field Documentation

$copy = false
$objectSaved = false

The documentation for this class was generated from the following file: