19 require_once(BASE.
"wcmf/lib/presentation/class.Controller.php");
20 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
21 require_once(BASE.
"wcmf/lib/persistence/class.LockManager.php");
22 require_once(BASE.
"wcmf/lib/model/class.Node.php");
23 require_once(BASE.
"wcmf/lib/model/class.NodeUtil.php");
24 require_once(BASE.
"wcmf/application/controller/class.SearchController.php");
61 $action = $this->_request->getAction();
62 if ($action ==
'soapSearch')
63 $this->
soapSearch($this->_request->getValue(
'searchterm'));
65 else if ($action ==
'soapAdvancedSearch')
66 $this->
soapAdvancedSearch($this->_request->getValue(
'type'), $this->_request->getValue(
'query'));
70 $lockManager->releaseAllLocks();
72 $this->_response->setAction(
'ok');
84 $types = array_keys($parser->getSection(
'typemapping'));
88 $objectList = array();
89 foreach ($types as $type)
95 if ($searchController->isSearchable($tpl))
97 $processor =
new NodeProcessor(
'setSearchTerm', array($searchTerm), $searchController);
98 $processor->run($tpl,
false);
101 foreach ($nodes as $node)
104 $object[
'type'] = $node->getType();
105 $object[
'oid'] = $node->getOID();
107 array_push($objectList, $object);
111 $this->_response->setValue(
'soapResult', $objectList);
123 $objectList = array();
124 foreach ($nodes as $node)
127 $object[
'type'] = $node->getType();
128 $object[
'oid'] = $node->getOID();
130 array_push($objectList, $object);
132 $this->_response->setValue(
'soapResult', $objectList);
SOAPController is a controller that handles SOAPRequests.
SearchController is a controller that executes a search for oids and displays them in a paged list...
NodeProcessor is used to iterate over all values of a Node and apply a given callback function...
Controller is the base class of all controllers. If a Controller has a view it is expected to reside ...
soapAdvancedSearch($type, $queryStr)
getDisplayValue(&$node, $useDisplayType=false, $language=null, $values=null)