phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
MtoNPropertyPart Class Reference

Inherits PntMtoNPropertyPart.

Additional Inherited Members

- Public Member Functions inherited from PntMtoNPropertyPart
 printBody ()
 
 getInitItemTable ()
 
 getItemTableColumnPaths ()
 
 getSearchFrameName ()
 
 getPropertyValueFor ($obj)
 
 printTableHeaders ($table)
 
 getOnClickRemoveRow ()
 
 printRows ($table)
 
 getItemActionCellContent ()
 
 printItemActionCell ($item, $index)
 
 printSearchPageUrl ()
 
 printAddRemoveScriptPart ()
 
 getEditDetailsDialogReplyScriptPiece ()
 
- Static Public Member Functions inherited from PntPage
static getInfoStyleOk ()
 
static getInfoStyleError ()
 
static getInfoStyleWarning ()
 
- Data Fields inherited from PntPropertyPart
 $printLabel = false
 
 $printIcons = false
 
 $propLabelCssClass = 'pntMultiPropLabel'
 
 $itemTableId
 

Detailed Description

Part used by ObjectMtoNPropertyPage. Contains a table from which the user can remove items by clicking their remove icons. and a SearchFrame with an MtoNSearchPage from which the user can search and add items by clicking in them. The table is adapted client-side to show the resulting related items. When the save button is pressed the id's of the added and removed items are sent to the server and processed to add and remove the relationship objects according to the selections of the user. This part can also be used inside a TabsPart inside an EditDetalsPage to create a single large form that holds both the detailsPart as the MtoNSearchPart(s). The user can then edit each tab and after he is finished send the entire form to the server at once so that all details and n to m relationships are processed at once.

This concrete subclass is here to keep de application developers code (including localization overrides) separated from the framework code.

See Also
http://www.phppeanuts.org/site/index_php/Menu/178 Framework code is in the superclass. This class may be copied to an application folder to make application specific overrides.
http://www.phppeanuts.org/site/index_php/Pagina/65

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