Docs For Class atkUpdatehandler
Atk API home Class tree Element index

Todo list

Packages: » atk Classes: general » AllTests » atkConfig » atkController » atkDataNode » atkErrorHandlerBase » atkFileEditor » atkLanguage » atkMailErrorHandler » atkMetaNode » atkMockNode » atkNode » atkNodeValidator » atkOneToManyRelationSessionGridHandler » atkPHPView » atkSessionStore » atkStatementIterator » atkTreeNode » atkWizardBase » atkZendPlatformErrorHandler » clsTbsDataSource » clsTbsLocator » clsTinyButStrong » clsTinyButStrongOOo » FCKeditor » getSupportedLanguagesCollector » layout » node » sql_whereclause_blacklist_checker » test » tree utils » atkAbstractFrame » atkActionListener » atkClassFinder » atkClassLoader » atkCompatSelector » atkDataHolder » atkDebugger » atkDirectoryTraverser » atkEventLog » atkFileUtils » atkFrame » atkFrameSet » atkIpUtils » atkJSON » atkMail » atkMailer » atkMessageQueue » atkMLSelector » atkmlsplitter » atkRootFrameset » atkSelector » atkSelectorIterator » atkString » atkStringParser » atkTableRenderer » atkTableRendererGrouped » atkTextMarker » atkTmpFile » atkTriggerListener » atkYAML » atkZip » browserInfo fixture » atkAbstractFixtureLoader » atkFixtureManager » atkPHPFixtureLoader » atkYAMLFixtureLoader testcases » atkAbstractSearchHandler ui » atkActionBoxBuilder » atkDialog » atkIndexPage » atkOutput » atkPage » atkPageBuilder » atkTheme » atkThemeCompiler » atkUI handlers » atkActionHandler » atkAddHandler » atkAddOrCopyHandler » atkAdminHandler » atkAttributeEditHandler » atkCopyHandler » atkDeleteHandler » atkDocumentHandler » atkEditCopyHandler » atkEditHandler » atkExportHandler » atkFeedbackHandler » atkFileExport » atkImportHandler » atkMultiSelectHandler » atkMultiUpdatehandler » atkSaveHandler » atkSearchHandler » atkSelectHandler » atkSmartSearchHandler » atkUpdatehandler » atkViewEditBase » atkViewHandler » atkXmlHandler attributes » atkAggregatedColumn » atkAttribute » atkBoolAttribute » atkCalculatorAttribute » atkCaptchaAttribute » atkColorPickerAttribute » atkCountryAttribute » atkCreatedByAttribute » atkCreateStampAttribute » atkCurrencyAttribute » atkDateAttribute » atkDateTimeAttribute » atkDocumentAttribute » atkDummyAttribute » atkDurationAttribute » atkEmailAttribute » atkExpressionAttribute » atkFckAttribute » atkFieldSet » atkFileAttribute » atkFileWriterAttribute » atkFlagAttribute » atkFormatAttribute » atkFuzzySearchAttribute » atkHiddenAttribute » atkHtmlAttribute » atkIpAttribute » atkListAttribute » atkLiveTextPreview » atkMlAttribute » atkMlFckAttribute » atkMlHtmlAttribute » atkMlNumberAttribute » atkMlSelectorAttribute » atkMlTextAttribute » atkMlWrapper » atkMultipleFileAttribute » atkMultiSelectAttribute » atkNumberAttribute » atkParserAttribute » atkPasswordAttribute » atkProfileAttribute » atkRadioAttribute » atkRadioDetailsAttribute » atkRowCounter » atkStateAttribute » atkTabbedPane » atkTagAttribute » atkTextAttribute » atkTimeAttribute » atkTimeZoneAttribute » atkToolbar » atkUpdatedByAttribute » atkUpdateStampAttribute » atkUrlAttribute » atkWeekdayAttribute » atkWysiwygAttribute datatypes » atkArrayDt » atkDataType » atkStringDt » atkTime subpackage » atkAttributeTestCase security » atkBajusEncryption » atkBase64Encryption » atkEncryption » atkMockSecurityManager » atkOpenSSLEncryption » atkSecurityListener » atkSecurityManager » atkUrlVault » auth_config » auth_db » auth_imap » auth_interface » auth_ldap » auth_none » auth_pop3 » auth_saml » auth_server » auth_sspi cache » atkCache » atkCache_apc » atkCache_eaccelerator » atkCache_file » atkCache_memcache » atkCache_var » atkCache_xcache » atkCache_zp_disk » atkCache_zp_output » atkCache_zp_shm test » atkCacheTestCase » atkPluginTestCase » atkTestCase » test_sql_whereclause_blacklist_checker db » atkClusterDb » atkClusterDDL » atkClusterQuery » atkDb » atkdb2db » atkDb2DDL » atkDb2Query » atkDDL » atki5db » atki5DDL » atki5query » atkMockDb » atkMockDDL » atkMockQuery » atkMsSqlDb » atkMsSqlDDL » atkMssqlQuery » atkMysqlDb » atkMysqlDDL » atkMysqliDb » atkMysqliDDL » atkMysqliQuery » atkMysqlQuery » atkOci8Db » atkOci8DDL » atkOci8Query » atkOci9Db » atkOci9DDL » atkOci9Query » atkOci805Db » atkOci805Query » atkPgsqlDb » atkPgsqlDDL » atkPgsqlQuery » atkQuery recordlist » atkColumnConfig » atkCSVRecordList » atkCustomRecordList » atkExcelCSVRecordList » atkHTMLRecordList » atkPrintableRecordList » atkRecordList » atkRecordlistCache » atkTotalizer db-statement » atkCompatStatement » atkMySQLiStatement » atkStatement » atkStatementException » atkStatementParser console » atkConsoleController menu » atkcookmenu » atkDhtmlMenu » atkDropdownMenu » atkFramesMenu » atkMenu » atkmenuinterface » atkModernMenu » atkOutlookMenu » atkPlainMenu datagrid » atkDataGrid » atkDGComponent » atkDGEditControl » atkDGEvent » atkDGIndex » atkDGLimit » atkDGList » atkDGNoRecordsFound » atkDGPaginator » atkDGRenderer » atkDGSummary lock » atkDbLock » atkLock filters » atkDistinctFilter » atkFilter » atkGroupByFilter document » atkDocumentWriter » atkDocxWriter » atkOpenDocumentWriter meta » atkDutchMetaGrammar » atkMetaAttributeModifier » atkMetaCompiler » atkMetaGrammar » atkMetaPolicy » mod_meta relations » atkExtendableShuttleRelation » atkManyBoolRelation » atkManyToManyListRelation » atkManyToManyRelation » atkManyToManySelectRelation » atkManyToOneRelation » atkManyToOneTreeRelation » atkMatrixRelation » atkOneToManyRelation » atkOneToOneRelation » atkPolymorphicOneToOneRelation » atkRelation » atkSecureRelation » atkShuttleControl » atkShuttleFilter » atkShuttleRelation front » atkFrontController » atkFrontControllerBridge keyboard » atkKeyboard meta-relations » atkMetaExtendableShuttleRelation » atkMetaManyBoolRelation » atkMetaManyToManyListRelation » atkMetaManyToManySelectRelation » atkMetaManyToOneRelation » atkMetaOneToManyRelation » atkMetaOneToOneRelation » atkMetaShuttleRelation session » atkMockSessionManager » atkSessionManager » atkState modules » atkModule » mod_test listeners » atkRecycleBin interface » atkServer » atkSoapServer wizard » atkWizard » AtkWizardActionLoader » atkWizardPanel
Interfaces: datagrid » atkDGListener interface » atkServerInterface
Files: general » adodb-time.inc.php » AllTests.php » atknodetools.inc » atktools.inc » atktreetools.inc » basexml.php » bootstrap.inc » bootstrap.php » class.atkconfig.inc » class.atkcontroller.inc » class.atkdatanode.inc » class.atkerrorhandlerbase.inc » class.atkfileeditor.inc » class.atki5db.inc » class.atki5ddl.inc » class.atki5query.inc » class.atklanguage.inc » class.atkmailerrorhandler.inc » class.atkmetanode.inc » class.atkmocknode.inc » class.atkmocksessionmanager.inc » class.atknode.inc » class.atknodevalidator.inc » class.atkonetomanyrelationsessiongridhandler.inc » class.atkphpview.inc » class.atkpolymorphiconetoonerelation.inc » class.atksessionstore.inc » class.atkstatementiterator.inc » class.atktreenode.inc » class.atkwizardbase.inc » class.atkzendplatformerrorhandler.inc » class.layout.inc » class.nodename.inc » class.sql_whereclause_blacklist_checker.inc » class.test.inc » class.test_sql_whereclause_blacklist_checker.inc » commands.php » config.modules.inc » config.php » connector.php » console.php » db2yaml.php » defaultconfig.inc.php » fckeditor.php » fckeditor_php4.php » fckeditor_php5.php » io.php » module.inc » phpcompat.php » server.php » spellchecker.php » table2yaml.php » tbsooo_class.php » tbs_class.php » tooltip.tpl.php » upload.php » util.php » version.inc attributes » class.atkaggregatedcolumn.inc » class.atkattribute.inc » class.atkboolattribute.inc » class.atkcalculatorattribute.inc » class.atkcaptchaattribute.inc » class.atkcolorpickerattribute.inc » class.atkcountryattribute.inc » class.atkcreatedbyattribute.inc » class.atkcreatestampattribute.inc » class.atkcurrencyattribute.inc » class.atkdateattribute.inc » class.atkdatetimeattribute.inc » class.atkdocumentattribute.inc » class.atkdummyattribute.inc » class.atkdurationattribute.inc » class.atkemailattribute.inc » class.atkexpressionattribute.inc » class.atkfckattribute.inc » class.atkfieldset.inc » class.atkfileattribute.inc » class.atkfilewriterattribute.inc » class.atkflagattribute.inc » class.atkformatattribute.inc » class.atkfuzzysearchattribute.inc » class.atkhiddenattribute.inc » class.atkhtmlattribute.inc » class.atkipattribute.inc » class.atklistattribute.inc » class.atklivetextpreview.inc » class.atkmlattribute.inc » class.atkmlfckattribute.inc » class.atkmlhtmlattribute.inc » class.atkmlnumberattribute.inc » class.atkmlselectorattribute.inc » class.atkmltextattribute.inc » class.atkmlwrapper.inc » class.atkmultiplefileattribute.inc » class.atkmultiselectattribute.inc » class.atknumberattribute.inc » class.atkparserattribute.inc » class.atkpasswordattribute.inc » class.atkprofileattribute.inc » class.atkradioattribute.inc » class.atkradiodetailsattribute.inc » class.atkrowcounter.inc » class.atkstateattribute.inc » class.atktabbedpane.inc » class.atktagattribute.inc » class.atktextattribute.inc » class.atktimeattribute.inc » class.atktimezoneattribute.inc » class.atktoolbar.inc » class.atkupdatedbyattribute.inc » class.atkupdatestampattribute.inc » class.atkurlattribute.inc » class.atkweekdayattribute.inc » class.atkwysiwygattribute.inc attributes-- » property_accessor.php cache » class.atkcache.inc » class.atkcache_apc.inc » class.atkcache_eaccelerator.inc » class.atkcache_file.inc » class.atkcache_memcache.inc » class.atkcache_var.inc » class.atkcache_xcache.inc » class.atkcache_zp_disk.inc » class.atkcache_zp_output.inc » class.atkcache_zp_shm.inc console » class.atkconsolecontroller.inc datagrid » class.atkdatagrid.inc » class.atkdgcomponent.inc » class.atkdgeditcontrol.inc » class.atkdgevent.inc » class.atkdgindex.inc » class.atkdglimit.inc » class.atkdglist.inc » class.atkdglistener.inc » class.atkdgnorecordsfound.inc » class.atkdgpaginator.inc » class.atkdgrenderer.inc » class.atkdgsummary.inc datatypes » class.atkarraydt.inc » class.atkdatatype.inc » class.atkstringdt.inc » class.atktimedt.inc db » class.atkclusterdb.inc » class.atkclusterddl.inc » class.atkclusterquery.inc » class.atkdb.inc » class.atkdb2db.inc » class.atkdb2ddl.inc » class.atkdb2query.inc » class.atkddl.inc » class.atkmockdb.inc » class.atkmockddl.inc » class.atkmockquery.inc » class.atkmssqldb.inc » class.atkmssqlddl.inc » class.atkmssqlquery.inc » class.atkmysqldb.inc » class.atkmysqlddl.inc » class.atkmysqlidb.inc » class.atkmysqliddl.inc » class.atkmysqliquery.inc » class.atkmysqlquery.inc » class.atkoci8db.inc » class.atkoci8ddl.inc » class.atkoci8query.inc » class.atkoci9db.inc » class.atkoci9ddl.inc » class.atkoci9query.inc » class.atkoci805db.inc » class.atkoci805query.inc » class.atkpgsqldb.inc » class.atkpgsqlddl.inc » class.atkpgsqlquery.inc » class.atkquery.inc db-statement » class.atkcompatstatement.inc » class.atkmysqlistatement.inc » class.atkstatement.inc » class.atkstatementexception.inc » class.atkstatementparser.inc document » class.atkdocumentwriter.inc » class.atkdocxwriter.inc » class.atkopendocumentwriter.inc filters » class.atkdistinctfilter.inc » class.atkfilter.inc » class.atkgroupbyfilter.inc fixture » class.atkabstractfixtureloader.inc » class.atkfixturemanager.inc » class.atkphpfixtureloader.inc » class.atkyamlfixtureloader.inc front » class.atkfrontcontroller.inc » class.atkfrontcontrollerbridge.inc handlers » class.atkactionhandler.inc » class.atkaddhandler.inc » class.atkaddorcopyhandler.inc » class.atkadminhandler.inc » class.atkattributeedithandler.inc » class.atkcopyhandler.inc » class.atkdeletehandler.inc » class.atkdocumenthandler.inc » class.atkeditcopyhandler.inc » class.atkedithandler.inc » class.atkexporthandler.inc » class.atkfeedbackhandler.inc » class.atkfileexport.inc » class.atkimporthandler.inc » class.atkmultiselecthandler.inc » class.atkmultiupdatehandler.inc » class.atksavehandler.inc » class.atksearchhandler.inc » class.atkselecthandler.inc » class.atksmartsearchhandler.inc » class.atkupdatehandler.inc » class.atkvieweditbase.inc » class.atkviewhandler.inc » class.atkxmlhandler.inc include » autoload.inc » basics.inc » compatibility.inc » configs.inc » debugging.inc » errorhandler.inc » globals.inc » initial.inc » security.inc interface » class.atkserver.inc » class.atksoapserver.inc » interface.atkserverinterface.inc javascript » class.atkmultilanguage.js.php » class.atkprofileattribute.js.php » dhtml_tabs.js.php keyboard » class.atkkeyboard.inc listeners » class.atkrecyclebin.inc lock » class.atkdblock.inc » class.atklock.inc » lock.php lock-- » lock.js.php menu » atkmenutools.inc » class.atkcookmenu.inc » class.atkdhtmlmenu.inc » class.atkdropdownmenu.inc » class.atkframesmenu.inc » class.atkmenu.inc » class.atkmenuinterface.inc » class.atkmodernmenu.inc » class.atkoutlookmenu.inc » class.atkplainmenu.inc meta » class.atkdutchmetagrammar.inc » class.atkmetaattributemodifier.inc » class.atkmetacompiler.inc » class.atkmetagrammar.inc » class.atkmetapolicy.inc » module.inc meta-relations » class.atkmetaextendableshuttlerelation.inc » class.atkmetamanyboolrelation.inc » class.atkmetamanytomanylistrelation.inc » class.atkmetamanytomanyselectrelation.inc » class.atkmetamanytoonerelation.inc » class.atkmetaonetomanyrelation.inc » class.atkmetaonetoonerelation.inc » class.atkmetashuttlerelation.inc modules » class.atkmodule.inc modules-- » atkmoduletools.inc popups » colorpicker.inc recordlist » class.atkcolumnconfig.inc » class.atkcsvrecordlist.inc » class.atkcustomrecordlist.inc » class.atkexcelcsvrecordlist.inc » class.atkhtmlrecordlist.inc » class.atkprintablerecordlist.inc » class.atkrecordlist.inc » class.atkrecordlistcache.inc » class.atktotalizer.inc relations » class.atkextendableshuttlerelation.inc » class.atkmanyboolrelation.inc » class.atkmanytomanylistrelation.inc » class.atkmanytomanyrelation.inc » class.atkmanytomanyselectrelation.inc » class.atkmanytoonerelation.inc » class.atkmanytoonetreerelation.inc » class.atkmatrixrelation.inc » class.atkonetomanyrelation.inc » class.atkonetoonerelation.inc » class.atkrelation.inc » class.atksecurerelation.inc » class.atkshuttlecontrol.inc » class.atkshuttlefilter.inc » class.atkshuttlerelation.inc security » class.atkbajusencryption.inc » class.atkbase64encryption.inc » class.atkencryption.inc » class.atkmocksecuritymanager.inc » class.atkmocksecuritymanager.inc » class.atkopensslencryption.inc » class.atksecuritylistener.inc » class.atksecuritymanager.inc » class.atkurlvault.inc » class.auth_config.inc » class.auth_db.inc » class.auth_imap.inc » class.auth_interface.inc » class.auth_ldap.inc » class.auth_none.inc » class.auth_pop3.inc » class.auth_saml.inc » class.auth_server.inc » class.auth_sspi.inc session » class.atksessionmanager.inc » class.atkstate.inc skel » app.php » atk.inc » config.inc.php » debugger.php » dispatch.php » include.php » index.php » menu.php » top.php » welcome.php subpackage » class.atkattributetestcase.inc test » class.atkcachetestcase.inc » class.atkplugintestcase.inc » class.atktestcase.inc testcases » class.atkabstractsearchhandler.inc themes » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc » themedef.inc ui » block.atknavigator.php » block.atknavigatorinfo.php » class.atkactionboxbuilder.inc » class.atkdialog.inc » class.atkindexpage.inc » class.atkoutput.inc » class.atkpage.inc » class.atkpagebuilder.inc » class.atktheme.inc » class.atkthemecompiler.inc » class.atkui.inc » function.atkconf.php » function.atkconfig.php » function.atkdatefield.php » function.atkdispatchfile.php » function.atkfrontcontroller.php » function.atkloadscript.php » function.atkmessages.php » function.atkmoduledir.php » function.atkscript.php » function.atkstyle.php » function.atktext.php » function.atkthemeicon.php » function.atkthemeimg.php » function.stacktrace.php » modifier.atkjson.php » modifier.atkvardump.php » resource.string.php » resource.theme.php » resource.ui.php utils » atkbrowsertools.inc » class.atkactionlistener.inc » class.atkclassloader.inc » class.atkcompatselector.inc » class.atkdataholder.inc » class.atkdebugger.inc » class.atkdirectorytraverser.inc » class.atkeventlog.inc » class.atkfileutils.inc » class.atkframeset.inc » class.atkiputils.inc » class.atkjson.inc » class.atkmail.inc » class.atkmailer.inc » class.atkmessagequeue.inc » class.atkmlselector.inc » class.atkmlsplitter.inc » class.atkselector.inc » class.atkselectoriterator.inc » class.atkstring.inc » class.atkstringparser.inc » class.atktablerenderer.inc » class.atktablerenderergrouped.inc » class.atktextmarker.inc » class.atktmpfile.inc » class.atktriggerlistener.inc » class.atkyaml.inc » class.atkzip.inc » help.inc wizard » class.atkwizard.inc » class.atkwizardactionloader.inc » class.atkwizardpanel.inc
Home  ->  Documentation home  ->  Atk index  ->  Docs For Class atkUpdatehandler [ package: atk ]

Class: atkUpdatehandler

Source Location: /handlers/class.atkupdatehandler.inc

Class atkUpdatehandler

Class Overview

Handler class for the update action of a node. The action saves an existing record to the database. The data is retrieved from the postvars.

This is the action that follows an 'edit' action. The 'edit' action draws the edit form, the 'update' action saves the data to the database. Validation of the record is performed before storage. If validation fails, the edit handler is invoked again.

Located in /handlers/class.atkupdatehandler.inc [line 32]

Wiki documentation

atkActionHandler
   |
   --atkUpdatehandler
Author(s): Information Tags:
Todo:  Add locking check for when an application calls an action_update on a locked node

Properties

Methods

[ Top ]

Inherited from parent

Inherited Properties Inherited Methods

Inherited From atkActionHandler

atkActionHandler::$m_action
atkActionHandler::$m_boxTemplate
atkActionHandler::$m_node
atkActionHandler::$m_partial
atkActionHandler::$m_rejecting
atkActionHandler::$m_renderBoxVars
atkActionHandler::$m_renderMode
atkActionHandler::$m_returnbehaviour

Inherited From atkActionHandler

atkActionHandler::atkActionHandler()
Default constructor.
atkActionHandler::addRenderBoxVar()
Add a variable to the renderbox
atkActionHandler::allowed()
Current action allowed on the given record?
atkActionHandler::clearCache()
Clear the recordlist cache
atkActionHandler::closeDialog()
Output JavaScript to close the dialog.
atkActionHandler::getCSRFToken()
Get/generate CSRF token for the current session stack.
atkActionHandler::getDefaultHandler()
Static factory method to get the default action handler for a certain action.
atkActionHandler::getNode()
Returns the node object.
atkActionHandler::getPage()
Get the page instance for generating output.
atkActionHandler::getRecordlistCache()
Get the cached recordlist
atkActionHandler::getRejectInfo()
Get the reject info from the session This is used by the atkAddHandler and atkEditHandler to show the validation errors
atkActionHandler::getRenderMode()
Returns the render mode.
atkActionHandler::getReturnBehaviour()
Get the returnbehaviour of this action
atkActionHandler::getUi()
Get the ui instance for drawing and templating purposes.
atkActionHandler::handle()
The handle() method handles the action.
atkActionHandler::invoke()
Generic method invoker.
atkActionHandler::isValidCSRFToken()
Checks whatever the given CSRF token matches the one stored in the session stack.
atkActionHandler::modifyDataGrid()
Modify grid.
atkActionHandler::notify()
Notify the node that an action has occured
atkActionHandler::partial()
Handle partial.
atkActionHandler::renderAccessDeniedDialog()
Render access denied dialog contents.
atkActionHandler::renderAccessDeniedPage()
Render access denied page.
atkActionHandler::renderMessageDialog()
Render message dialog contents.
atkActionHandler::setAction()
Sets the current action.
atkActionHandler::setBoxTemplate()
atkActionHandler::setNode()
Set the calling node of the current action.
atkActionHandler::setPostvars()
Set postvars of the the calling node of the current action.
atkActionHandler::setRejectInfo()
Store the reject info in the session This is used by the atkSaveHandler and atkUpdateHandler to store the record if the record is not validated
atkActionHandler::setRenderMode()
Sets the render mode ("box" or "dialog").
atkActionHandler::setReturnBehaviour()
Set the returnbehaviour of this action
atkActionHandler::updateDialog()
Outputs JavaScript for updating the existing dialog contents.
atkActionHandler::_getAccessDeniedPage()
Get the access denied page

[ Top ]

Property Summary

mixed   $m_dialogSaveUrl  
string   $m_editAction   Edit action.

[ Top ]

Method Summary

void   action_update()   The action handler method.
void   doUpdate()   Perform the update action
string   getEditAction()   Returns the edit action, which is called when we want to return the user to the edit form.
String   getEditPage()   This method is obsolete. Do not use it. It is only here for backwards compatibility...
Array   getRecord()   Get the record for updating
void   handleAccessDenied()   Called when the acces to this action was denied for the current user.
void   handleCancel()   Called when the user clicks cancel
bool   handleProcess()   Process a record (preUpdate/validate/store)
void   handleUpdate()   Handle the update of a dialog.
void   handleUpdateError()   Handle update error. This can either be an error in the record data the user can correct or a fatal error when saving the record in the database. If the latter is the case the $error parameter is set.
void   handleUpdateSuccess()   Handle update success. Normally redirects the user either back to the edit form (when the user only saved) or back to the previous action if the user choose save and close.
bool   hasError()   Check if there is an error (this can be determined by the variable atkerror in the record).
void   loadEditDialogWithErrors()   Update the edit dialog for a failed update
void   loadSuccessDialog()  
void   partial_dialog()   Handle the dialog partial
void   renderEditPage()   This method is obsolete. Do not use it. It is only here for backward compatibility...
void   setDialogSaveUrl()   Override the dialog save url
void   setEditAction()   Sets the edit action which should be called when we need to return the user to the edit form.
mixed   updateRecord()   Update a record, determines wether to update it to the session or the database
mixed   updateRecordInDb()   Update a record in the database
mixed   updateRecordInSession()   Update a record in the session

[ Top ]

Properties

mixed   $m_dialogSaveUrl [line 34]
API Tags:
Access:  public


[ Top ]
string   $m_editAction = 'edit' [line 41]

Edit action.

API Tags:
Access:  private


[ Top ]

Methods

action_update  [line 46]

  void action_update( )

The action handler method.


API Tags:
Access:  public


[ Top ]
doUpdate  [line 89]

  void doUpdate( )

Perform the update action


API Tags:
Access:  public


[ Top ]
getEditAction  [line 70]

  string getEditAction( )

Returns the edit action, which is called when we want to return the user to the edit form.

Defaults to the 'edit' action.


API Tags:
Return:  edit action
Access:  public


[ Top ]
getEditPage  [line 467]

  String getEditPage( &$record, Array $record  )

This method is obsolete. Do not use it. It is only here for backwards compatibility...

Parameters:
Array   $record: 
   &$record: 

API Tags:
Return:  HTML code for the edit page
Deprecated:  
Access:  public


[ Top ]
getRecord  [line 140]

  Array getRecord( )

Get the record for updating


API Tags:
Return:  The record to update
Access:  public


[ Top ]
handleAccessDenied  [line 149]

  void handleAccessDenied( )

Called when the acces to this action was denied for the current user.


API Tags:
Access:  public


[ Top ]
handleCancel  [line 159]

  void handleCancel( array $record  )

Called when the user clicks cancel

Parameters:
array   $record: 

API Tags:
Access:  public


[ Top ]
handleProcess  [line 174]

  bool handleProcess( array $record, [string $errorHandler = 'handleUpdateError'], [string $successHandler = "handleUpdateSuccess"], [array $extraParams = array()]  )

Process a record (preUpdate/validate/store)

Parameters:
array   $record:  Record to store
string   $errorHandler:  Error handler method to call on current handler
string   $successHandler:  Success handler method to call on current handler
array   $extraParams:  Extra params to pass along to error/success handler methods

API Tags:
Return:  Wether the process succeeded in storing the record
Access:  public


[ Top ]
handleUpdate  [line 372]

  void handleUpdate( [String $attrRefreshUrl = null]  )

Handle the update of a dialog.

Parameters:
String   $attrRefreshUrl: 

API Tags:
Access:  public


[ Top ]
handleUpdateError  [line 304]

  void handleUpdateError( array $record, [string $error = null]  )

Handle update error. This can either be an error in the record data the user can correct or a fatal error when saving the record in the database. If the latter is the case the $error parameter is set.

This method can be overriden inside your node.

Parameters:
array   $record: 
string   $error:  error string (only on fatal errors)

API Tags:
Access:  public


[ Top ]
handleUpdateSuccess  [line 328]

  void handleUpdateSuccess( array $record  )

Handle update success. Normally redirects the user either back to the edit form (when the user only saved) or back to the previous action if the user choose save and close.

This method can be overriden inside your node.

Parameters:
array   $record:  the record

API Tags:
Access:  public


[ Top ]
hasError  [line 218]

  bool hasError( array $record  )

Check if there is an error (this can be determined by the variable atkerror in the record).

Parameters:
array   $record:  Record to check for errors

API Tags:
Return:  Error detected?
Access:  public


[ Top ]
loadEditDialogWithErrors  [line 420]

  void loadEditDialogWithErrors( array $record  )

Update the edit dialog for a failed update

Parameters:
array   $record:  Record that failed update

API Tags:
Access:  private


[ Top ]
loadSuccessDialog  [line 396]

  void loadSuccessDialog( $record, $extraParams, unknown_type $attrRefreshUrl  )

Parameters:
unknown_type   $attrRefreshUrl: 
   $record: 
   $extraParams: 

API Tags:
Access:  private

Information Tags:
Todo:  document.location.href is problematic if you already clicked the save action on a normal edit page. If you use the editdialog after that and you save the dialog, the page will redirect to the index page of the application.
Todo:  refresh only the recordlist not the full page.

[ Top ]
partial_dialog  [line 352]

  void partial_dialog( String $mode  )

Handle the dialog partial

Parameters:
String   $mode:  The current mode


[ Top ]
renderEditPage  [line 448]

  void renderEditPage( &$record, array $record  )

This method is obsolete. Do not use it. It is only here for backward compatibility...

Render an editpage

We have to make the entire system think we are in edit mode again.

Parameters:
array   $record: 
   &$record: 

API Tags:
Deprecated:  


[ Top ]
setDialogSaveUrl  [line 362]

  void setDialogSaveUrl( string $url  )

Override the dialog save url

Parameters:
string   $url:  dialog save URL


[ Top ]
setEditAction  [line 81]

  void setEditAction( string $action  )

Sets the edit action which should be called when we need to return the user to the edit form.

Parameters:
string   $action:  action name

API Tags:
Access:  public


[ Top ]
updateRecord  [line 238]

  mixed updateRecord( &$record, array $record  )

Update a record, determines wether to update it to the session or the database

Parameters:
array   $record:  Record to update
   &$record: 

API Tags:
Return:  Result of the update, true, false or string with error
Access:  private


[ Top ]
updateRecordInDb  [line 257]

  mixed updateRecordInDb( &$record, array $record  )

Update a record in the database

Parameters:
array   $record:  Record to update
   &$record: 

API Tags:
Return:  Result of the update, true, false or string with error
Access:  private


[ Top ]
updateRecordInSession  [line 286]

  mixed updateRecordInSession( array $record  )

Update a record in the session

Parameters:
array   $record:  Record to update

API Tags:
Return:  Result of the update, true or false
Access:  private


[ Top ]
Home | About | Contact