Source for file JavaPOCAgentManager.class.php

Documentation is available at JavaPOCAgentManager.class.php

  1. <?php
  2.  
  3. require_once(OKI2."/osid/agent/AgentManager.php");
  4.  
  5. /**
  6. * <p>
  7. * AgentManager handles creating, deleting, and getting Agents and Groups.
  8. * Group is a subclass of Agent. Groups contain members. Group members are
  9. * Agents or other Groups.
  10. * </p>
  11. *
  12. * <p>
  13. * All implementations of OsidManager (manager) provide methods for accessing
  14. * and manipulating the various objects defined in the OSID package. A manager
  15. * defines an implementation of an OSID. All other OSID objects come either
  16. * directly or indirectly from the manager. New instances of the OSID objects
  17. * are created either directly or indirectly by the manager. Because the OSID
  18. * objects are defined using interfaces, create methods must be used instead
  19. * of the new operator to create instances of the OSID objects. Create methods
  20. * are used both to instantiate and persist OSID objects. Using the
  21. * OsidManager class to define an OSID's implementation allows the application
  22. * to change OSID implementations by changing the OsidManager package name
  23. * used to load an implementation. Applications developed using managers
  24. * permit OSID implementation substitution without changing the application
  25. * source code. As with all managers, use the OsidLoader to load an
  26. * implementation of this interface.
  27. * </p>
  28. *
  29. * <p></p>
  30. *
  31. * <p>
  32. * OSID Version: 2.0
  33. * </p>
  34. *
  35. * @package harmoni.osid_v2.agent
  36. *
  37. * @copyright Copyright &copy; 2005, Middlebury College
  38. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  39. *
  40. * @version $Id: JavaPOCAgentManager.class.php,v 1.7 2007/09/04 20:25:36 adamfranco Exp $
  41. *
  42. */
  43. class JavaPOCAgentManager
  44. extends AgentManager {
  45. var $_javaClassName;
  46. var $_javaClass;
  47. function JavaPOCAgentManager( $className ) {
  48. $this->_javaClassName = $className;
  49. $testClass = new Java($className);
  50. $ex = java_last_exception_get();
  51. if ($ex) die("Could not instantiate '$className' (Java): ".$ex->toString);
  52. java_last_exception_clear();
  53. $this->_javaClass =$testClass;
  54. }
  55. /**
  56. * Create an Agent with the display name, Type, and Properties specified.
  57. * All are immutable.
  58. *
  59. * @param string $displayName
  60. * @param object Type $agentType
  61. * @param object Properties $properties
  62. *
  63. * @return object Agent
  64. *
  65. * @throws object AgentException An exception with one of the
  66. * following messages defined in org.osid.agent.AgentException may
  67. * be thrown: {@link }
  68. * org.osid.agent.AgentException#OPERATION_FAILED
  69. * OPERATION_FAILED}, {@link }
  70. * org.osid.agent.AgentException#PERMISSION_DENIED
  71. * PERMISSION_DENIED}, {@link }
  72. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  73. * CONFIGURATION_ERROR}, {@link }
  74. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  75. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  76. * NULL_ARGUMENT}, {@link }
  77. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  78. *
  79. * @access public
  80. */
  81. function createAgent ( $displayName, $agentType, $properties ) {
  82. $result = $this->_javaClass->createAgent($displayName, $agentType, $properties);
  83. $ex = java_last_exception_get();
  84. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  85. java_last_exception_clear();
  86. return $result;
  87. }
  88.  
  89. /**
  90. * Delete the Agent with the specified unique Id.
  91. *
  92. * @param object Id $id
  93. *
  94. * @throws object AgentException An exception with one of the
  95. * following messages defined in org.osid.agent.AgentException may
  96. * be thrown: {@link }
  97. * org.osid.agent.AgentException#OPERATION_FAILED
  98. * OPERATION_FAILED}, {@link }
  99. * org.osid.agent.AgentException#PERMISSION_DENIED
  100. * PERMISSION_DENIED}, {@link }
  101. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  102. * CONFIGURATION_ERROR}, {@link }
  103. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  104. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  105. * NULL_ARGUMENT}, {@link org.osid.agent.AgentException#UNKNOWN_ID}
  106. * UNKNOWN_ID}
  107. *
  108. * @access public
  109. */
  110. function deleteAgent ( $id ) {
  111. $this->_javaClass->deleteAgent($id);
  112. $ex = java_last_exception_get();
  113. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  114. java_last_exception_clear();
  115. }
  116.  
  117. /**
  118. * Get the Agent with the specified unique Id. Getting an Agent by name is
  119. * not supported since names are not guaranteed to be unique.
  120. *
  121. * @param object Id $id
  122. *
  123. * @return object Agent
  124. *
  125. * @throws object AgentException An exception with one of the
  126. * following messages defined in org.osid.agent.AgentException may
  127. * be thrown: {@link }
  128. * org.osid.agent.AgentException#OPERATION_FAILED
  129. * OPERATION_FAILED}, {@link }
  130. * org.osid.agent.AgentException#PERMISSION_DENIED
  131. * PERMISSION_DENIED}, {@link }
  132. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  133. * CONFIGURATION_ERROR}, {@link }
  134. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  135. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  136. * NULL_ARGUMENT}, {@link org.osid.agent.AgentException#UNKNOWN_ID}
  137. * UNKNOWN_ID}
  138. *
  139. * @access public
  140. */
  141. function getAgent ( $id ) {
  142. $result = $this->_javaClass->getAgent($id);
  143. $ex = java_last_exception_get();
  144. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  145. java_last_exception_clear();
  146. return $result;
  147. }
  148.  
  149. /**
  150. * Get all the Agents. The returned iterator provides access to the Agents
  151. * one at a time. Iterators have a method hasNextAgent() which returns
  152. * <code>true</code> if there is an Agent available and a method
  153. * nextAgent() which returns the next Agent.
  154. *
  155. * @return object AgentIterator
  156. *
  157. * @throws object AgentException An exception with one of the
  158. * following messages defined in org.osid.agent.AgentException may
  159. * be thrown: {@link }
  160. * org.osid.agent.AgentException#OPERATION_FAILED
  161. * OPERATION_FAILED}, {@link }
  162. * org.osid.agent.AgentException#PERMISSION_DENIED
  163. * PERMISSION_DENIED}, {@link }
  164. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  165. * CONFIGURATION_ERROR}, {@link }
  166. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  167. *
  168. * @access public
  169. */
  170. function getAgents () {
  171. $result = $this->_javaClass->getAgents();
  172. $ex = java_last_exception_get();
  173. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  174. java_last_exception_clear();
  175. return $result;
  176. }
  177.  
  178. /**
  179. * Get all the agent Types. The returned iterator provides access to the
  180. * agent Types from this implementation one at a time. Iterators have a
  181. * method hasNext() which returns true if there is an agent Type
  182. * available and a method next() which returns the next agent Type.
  183. *
  184. * @return object TypeIterator
  185. *
  186. * @throws object AgentException An exception with one of the
  187. * following messages defined in org.osid.agent.AgentException may
  188. * be thrown: {@link }
  189. * org.osid.agent.AgentException#OPERATION_FAILED
  190. * OPERATION_FAILED}, {@link }
  191. * org.osid.agent.AgentException#PERMISSION_DENIED
  192. * PERMISSION_DENIED}, {@link }
  193. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  194. * CONFIGURATION_ERROR}, {@link }
  195. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  196. *
  197. * @access public
  198. */
  199. function getAgentTypes () {
  200. $result = $this->_javaClass->getAgentTypes();
  201. $ex = java_last_exception_get();
  202. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  203. java_last_exception_clear();
  204. return $result;
  205. }
  206. /**
  207. * Get all the property Types. The returned iterator provides access to
  208. * the property Types from this implementation one at a time. Iterators
  209. * have a method hasNext() which returns true if there is another
  210. * property Type available and a method next() which returns the next
  211. * property Type.
  212. *
  213. * @return object TypeIterator
  214. *
  215. * @throws object AgentException An exception with one of the
  216. * following messages defined in org.osid.agent.AgentException may
  217. * be thrown: {@link }
  218. * org.osid.agent.AgentException#OPERATION_FAILED
  219. * OPERATION_FAILED}, {@link }
  220. * org.osid.agent.AgentException#PERMISSION_DENIED
  221. * PERMISSION_DENIED}, {@link }
  222. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  223. * CONFIGURATION_ERROR}, {@link }
  224. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  225. *
  226. * @access public
  227. */
  228. function getPropertyTypes () {
  229. $result = $this->_javaClass->getPropertyTypes();
  230. $ex = java_last_exception_get();
  231. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  232. java_last_exception_clear();
  233. return $result;
  234. }
  235.  
  236. /**
  237. * Create a Group with the display name, Type, description, and Properties
  238. * specified. All but description are immutable.
  239. *
  240. * @param string $displayName
  241. * @param object Type $groupType
  242. * @param string $description
  243. * @param object Properties $properties
  244. *
  245. * @return object Group
  246. *
  247. * @throws object AgentException An exception with one of the
  248. * following messages defined in org.osid.agent.AgentException may
  249. * be thrown: {@link }
  250. * org.osid.agent.AgentException#OPERATION_FAILED
  251. * OPERATION_FAILED}, {@link }
  252. * org.osid.agent.AgentException#PERMISSION_DENIED
  253. * PERMISSION_DENIED}, {@link }
  254. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  255. * CONFIGURATION_ERROR}, {@link }
  256. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  257. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  258. * NULL_ARGUMENT}, {@link }
  259. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  260. *
  261. * @access public
  262. */
  263. function createGroup ( $displayName, $groupType, $description, $properties ) {
  264. $result = $this->_javaClass->createGroup( $displayName, $groupType, $description, $properties );
  265. $ex = java_last_exception_get();
  266. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  267. java_last_exception_clear();
  268. return $result;
  269. }
  270.  
  271. /**
  272. * Delete the Group with the specified unique Id.
  273. *
  274. * @param object Id $id
  275. *
  276. * @throws object AgentException An exception with one of the
  277. * following messages defined in org.osid.agent.AgentException may
  278. * be thrown: {@link }
  279. * org.osid.agent.AgentException#OPERATION_FAILED
  280. * OPERATION_FAILED}, {@link }
  281. * org.osid.agent.AgentException#PERMISSION_DENIED
  282. * PERMISSION_DENIED}, {@link }
  283. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  284. * CONFIGURATION_ERROR}, {@link }
  285. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  286. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  287. * NULL_ARGUMENT}, {@link org.osid.agent.AgentException#UNKNOWN_ID}
  288. * UNKNOWN_ID}
  289. *
  290. * @access public
  291. */
  292. function deleteGroup ( $id ) {
  293. $this->_javaClass->deleteGroup($id);
  294. $ex = java_last_exception_get();
  295. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  296. java_last_exception_clear();
  297. }
  298.  
  299. /**
  300. * Gets the Group with the specified unique Id. Getting a Group by name is
  301. * not supported since names are not guaranteed to be unique.
  302. *
  303. * @param object Id $id
  304. *
  305. * @return object Group
  306. *
  307. * @throws object AgentException An exception with one of the
  308. * following messages defined in org.osid.agent.AgentException may
  309. * be thrown: {@link }
  310. * org.osid.agent.AgentException#OPERATION_FAILED
  311. * OPERATION_FAILED}, {@link }
  312. * org.osid.agent.AgentException#PERMISSION_DENIED
  313. * PERMISSION_DENIED}, {@link }
  314. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  315. * CONFIGURATION_ERROR}, {@link }
  316. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  317. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  318. * NULL_ARGUMENT}, {@link org.osid.agent.AgentException#UNKNOWN_ID}
  319. * UNKNOWN_ID}
  320. *
  321. * @access public
  322. */
  323. function getGroup ( $id ) {
  324. $result = $this->_javaClass->getGroup($id);
  325. $ex = java_last_exception_get();
  326. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  327. java_last_exception_clear();
  328. return $result;
  329. }
  330.  
  331. /**
  332. * Get all the Groups. Note since Groups subclass Agents, we are returning
  333. * an AgentIterator and there is no GroupIterator. the returned iterator
  334. * provides access to the Groups one at a time. Iterators have a method
  335. * hasNextAgent() which returns true if there is a Group available and a
  336. * method nextAgent() which returns the next Group.
  337. *
  338. * @return object AgentIterator
  339. *
  340. * @throws object AgentException An exception with one of the
  341. * following messages defined in org.osid.agent.AgentException may
  342. * be thrown: {@link }
  343. * org.osid.agent.AgentException#OPERATION_FAILED
  344. * OPERATION_FAILED}, {@link }
  345. * org.osid.agent.AgentException#PERMISSION_DENIED
  346. * PERMISSION_DENIED}, {@link }
  347. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  348. * CONFIGURATION_ERROR}, {@link }
  349. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  350. *
  351. * @access public
  352. */
  353. function getGroups () {
  354. $result = $this->_javaClass->getGroups();
  355. $ex = java_last_exception_get();
  356. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  357. java_last_exception_clear();
  358. return $result;
  359. }
  360.  
  361. /**
  362. * Get all the group Types. The returned iterator provides access to the
  363. * group Types from this implementation one at a time. Iterators have a
  364. * method hasNext() which returns true if there is a group Type
  365. * available and a method next() which returns the next group Type.
  366. *
  367. * @return object TypeIterator
  368. *
  369. * @throws object AgentException An exception with one of the
  370. * following messages defined in org.osid.agent.AgentException may
  371. * be thrown: {@link }
  372. * org.osid.agent.AgentException#OPERATION_FAILED
  373. * OPERATION_FAILED}, {@link }
  374. * org.osid.agent.AgentException#PERMISSION_DENIED
  375. * PERMISSION_DENIED}, {@link }
  376. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  377. * CONFIGURATION_ERROR}, {@link }
  378. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  379. *
  380. * @access public
  381. */
  382. function getGroupTypes () {
  383. $result = $this->_javaClass->getGroupTypes();
  384. $ex = java_last_exception_get();
  385. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  386. java_last_exception_clear();
  387. return $result;
  388. }
  389.  
  390. /**
  391. * Get all the Agents of the specified Type.
  392. *
  393. * @param object Type $agentType
  394. *
  395. * @return object AgentIterator
  396. *
  397. * @throws object AgentException An exception with one of the
  398. * following messages defined in org.osid.agent.AgentException may
  399. * be thrown: {@link }
  400. * org.osid.agent.AgentException#OPERATION_FAILED
  401. * OPERATION_FAILED}, {@link }
  402. * org.osid.agent.AgentException#PERMISSION_DENIED
  403. * PERMISSION_DENIED}, {@link }
  404. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  405. * CONFIGURATION_ERROR}, {@link }
  406. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  407. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  408. * NULL_ARGUMENT}, {@link }
  409. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  410. *
  411. * @access public
  412. */
  413. function getAgentsByType ( $agentType ) {
  414. $result = $this->_javaClass->getAgentsByType($agentType);
  415. $ex = java_last_exception_get();
  416. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  417. java_last_exception_clear();
  418. return $result;
  419. }
  420.  
  421. /**
  422. * Get all the Groups of the specified Type.
  423. *
  424. * @param object Type $groupType
  425. *
  426. * @return object AgentIterator
  427. *
  428. * @throws object AgentException An exception with one of the
  429. * following messages defined in org.osid.agent.AgentException may
  430. * be thrown: {@link }
  431. * org.osid.agent.AgentException#OPERATION_FAILED
  432. * OPERATION_FAILED}, {@link }
  433. * org.osid.agent.AgentException#PERMISSION_DENIED
  434. * PERMISSION_DENIED}, {@link }
  435. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  436. * CONFIGURATION_ERROR}, {@link }
  437. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  438. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  439. * NULL_ARGUMENT}, {@link }
  440. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  441. *
  442. * @access public
  443. */
  444. function getGroupsByType ( $groupType ) {
  445. $result = $this->_javaClass->getGroupsByType($groupType);
  446. $ex = java_last_exception_get();
  447. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  448. java_last_exception_clear();
  449. return $result;
  450. }
  451.  
  452. /**
  453. * Get all the agent search Types supported by this implementation.
  454. *
  455. * @return object TypeIterator
  456. *
  457. * @throws object AgentException An exception with one of the
  458. * following messages defined in org.osid.agent.AgentException may
  459. * be thrown: {@link }
  460. * org.osid.agent.AgentException#OPERATION_FAILED
  461. * OPERATION_FAILED}, {@link }
  462. * org.osid.agent.AgentException#PERMISSION_DENIED
  463. * PERMISSION_DENIED}, {@link }
  464. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  465. * CONFIGURATION_ERROR}, {@link }
  466. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  467. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  468. * NULL_ARGUMENT}, {@link }
  469. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  470. *
  471. * @access public
  472. */
  473. function getAgentSearchTypes () {
  474. $result = $this->_javaClass->getAgentSearchTypes();
  475. $ex = java_last_exception_get();
  476. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  477. java_last_exception_clear();
  478. return $result;
  479. }
  480.  
  481. /**
  482. * Get all the Agents with the specified search criteria and search Type.
  483. *
  484. * @param object mixed $searchCriteria (original type: java.io.Serializable)
  485. * @param object Type $agentSearchType
  486. *
  487. * @return object AgentIterator
  488. *
  489. * @throws object AgentException An exception with one of the
  490. * following messages defined in org.osid.agent.AgentException may
  491. * be thrown: {@link }
  492. * org.osid.agent.AgentException#OPERATION_FAILED
  493. * OPERATION_FAILED}, {@link }
  494. * org.osid.agent.AgentException#PERMISSION_DENIED
  495. * PERMISSION_DENIED}, {@link }
  496. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  497. * CONFIGURATION_ERROR}, {@link }
  498. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  499. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  500. * NULL_ARGUMENT}, {@link }
  501. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  502. *
  503. * @access public
  504. */
  505. function getAgentsBySearch ( $searchCriteria, $agentSearchType ) {
  506. $result = $this->_javaClass->getAgentsBySearch($searchCriteria, $agentSearchType);
  507. $ex = java_last_exception_get();
  508. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  509. java_last_exception_clear();
  510. return $result;
  511. }
  512.  
  513. /**
  514. * Get all the group search types supported by this implementation.
  515. *
  516. * @return object TypeIterator
  517. *
  518. * @throws object AgentException An exception with one of the
  519. * following messages defined in org.osid.agent.AgentException may
  520. * be thrown: {@link }
  521. * org.osid.agent.AgentException#OPERATION_FAILED
  522. * OPERATION_FAILED}, {@link }
  523. * org.osid.agent.AgentException#PERMISSION_DENIED
  524. * PERMISSION_DENIED}, {@link }
  525. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  526. * CONFIGURATION_ERROR}, {@link }
  527. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  528. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  529. * NULL_ARGUMENT}, {@link }
  530. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  531. *
  532. * @access public
  533. */
  534. function getGroupSearchTypes () {
  535. $result = $this->_javaClass->getGroupSearchTypes();
  536. $ex = java_last_exception_get();
  537. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  538. java_last_exception_clear();
  539. return $result;
  540. }
  541.  
  542. /**
  543. * Get all the groups with the specified search criteria and search Type.
  544. *
  545. * @param object mixed $searchCriteria (original type: java.io.Serializable)
  546. * @param object Type $groupSearchType
  547. *
  548. * @return object AgentIterator
  549. *
  550. * @throws object AgentException An exception with one of the
  551. * following messages defined in org.osid.agent.AgentException may
  552. * be thrown: {@link }
  553. * org.osid.agent.AgentException#OPERATION_FAILED
  554. * OPERATION_FAILED}, {@link }
  555. * org.osid.agent.AgentException#PERMISSION_DENIED
  556. * PERMISSION_DENIED}, {@link }
  557. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  558. * CONFIGURATION_ERROR}, {@link }
  559. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  560. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  561. * NULL_ARGUMENT}, {@link }
  562. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  563. *
  564. * @access public
  565. */
  566. function getGroupsBySearch ( $searchCriteria, $groupSearchType ) {
  567. $result = $this->_javaClass->getGroupsBySearch($searchCriteria, $groupSearchType);
  568. $ex = java_last_exception_get();
  569. if ($ex) { java_last_exception_clear(); return $ex->toString(); }
  570. java_last_exception_clear();
  571. return $result;
  572. }
  573. }
  574.  
  575. ?>

Documentation generated on Wed, 19 Sep 2007 10:24:45 -0400 by phpDocumentor 1.3.0RC3