19 require_once(BASE.
"wcmf/application/controller/class.PagingController.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
21 require_once(BASE.
"wcmf/lib/model/class.NodeUtil.php");
47 parent::initialize($request, $response);
51 if (intval($request->getValue(
'pageSize')) > 0 && $request->getValue(
'pageSize') != $pageSize)
53 $pageSize = $request->getValue(
'pageSize');
66 $this->
setErrorMsg(
"No valid 'type' given in data.");
69 return parent::validate();
79 $oids = &$persistenceFacade->getOIDs($this->_request->getValue(
'type'));
105 if ($session->exist($sessionVarName))
106 return $session->get($sessionVarName);
109 if (intval($this->_request->getValue(
'pageSize')) > 0)
110 $pageSize = $this->_request->getValue(
'pageSize');
120 $this->_response->setValue(
'type', $this->_request->getValue(
'type'));
121 $this->_response->setValue(
'pageSize', $this->_request->getValue(
'pageSize'));
123 return parent::executeKernel();
131 return 'NodeListController.'.$this->_request->getValue(
'type').
'.';
setSortProperties(&$nodeList)
PagingController is a controller that allows to navigate lists.
NodeListController is a controller that loads nodes of a given type and displays the result in a list...
initialize(&$request, &$response)
getDisplayValue(&$node, $useDisplayType=false, $language=null, $values=null)