wCMF Wiki : ControllerExample

HomePage :: Categories :: PageIndex :: RecentChanges :: Login/Register

Revision [480]

Last edited on 2009-01-27 18:49:27 by GiuseppePlatania
Additions:
// the ammount of objects that you intent to get.

$pagingInfo = new PagingInfo($this->_request->getValue('limit'));
//Set the current index (selects the page)
$pagingInfo->setIndex($this->_request->getValue('start'));
// execute this code only if the action is autocomplete
$ChiBusinessObjectList = $query->execute(BUILDDEPTH_SINGLE, null, $pagingInfo);
Deletions:
// execute this code only if
$ChiBusinessObjectList = $query->execute(BUILDDEPTH_SINGLE);


Revision [479]

Edited on 2009-01-27 17:31:56 by GiuseppePlatania
Additions:
this is an example how to [[ProgrammingControllers program a controller]] in wCMF using the [[ObjectQuery Object Query]].
Deletions:
this is an example how to program a controller in wCMF.


Revision [478]

Edited on 2009-01-27 17:30:41 by GiuseppePlatania
Additions:
This controller get a parameter containing a string and look for all objects of the type "ChiBusinessUseCase" present in the model.
this is an example how to program a controller in wCMF.


Revision [477]

The oldest known version of this page was created on 2009-01-27 17:20:29 by GiuseppePlatania
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1549 seconds