19 require_once(BASE.
"wcmf/application/controller/class.NodeListController.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
21 require_once(BASE.
"wcmf/lib/model/class.NodeUtil.php");
22 require_once(BASE.
"wcmf/lib/presentation/ListboxFunctions.php");
55 $this->
setErrorMsg(
"No valid 'poid' given in data.");
58 return parent::validate();
68 $parent = &$persistenceFacade->load($this->_request->getValue(
'poid'),
BUILDDEPTH_SINGLE);
69 $type = $this->_request->getValue(
'type');
71 $parent->loadChildren($type);
72 $children = $parent->getChildrenEx(null, $type, null, null);
73 for ($i=0; $i<
sizeof($children); $i++)
74 array_push($oids, $children[$i]->getOID());
83 parent::modifyModel(&$nodes);
88 for ($i=0; $i<
sizeof($nodes); $i++)
90 $curNode = &$nodes[$i];
91 if (in_array(
'manyToMany', $curNode->getPropertyNames()))
97 foreach($curNode->getProperty(
'parentoids') as $curParentOID)
106 $curNode->setProperty(
'realSubject', $realSubject);
118 $typeInstance = &$persistenceFacade->create($this->_request->getValue(
'type'),
BUILDDEPTH_SINGLE);
119 if (in_array(
'manyToMany', $typeInstance->getPropertyNames()))
122 $this->_response->setValue(
'poid', $this->_request->getValue(
'poid'));
123 $this->_response->setValue(
'canCreate', $this->_request->getValue(
'canCreate'));
124 $this->_response->setValue(
'aggregation', $this->_request->getValue(
'aggregation'));
125 $this->_response->setValue(
'composition', $this->_request->getValue(
'composition'));
127 return parent::executeKernel();
135 return 'ChildrenListController.'.PersistenceFacade::getOIDParameter(
136 $this->_request->getValue(
'poid'),
'type').
'.'.$this->_request->getValue(
'type').
'.';
148 foreach($node->getProperty(
'manyToMany') as $curParentType)
150 if ($curParentType != $parentType)
151 return $curParentType;
getRealSubjectType(&$node)
ChildrenListController is a controller that loads chilren of a given node and displays the result in ...
NodeListController is a controller that loads nodes of a given type and displays the result in a list...
getOIDParameter($oid, $param, $validate=true)