/** * Get the unique Id of the Agent that created this ScheduleItem. * * * @return object Id * * @throws object SchedulingException An exception with one of * the following messages defined in * org.osid.scheduling.SchedulingException may be thrown: {@link * org.osid.scheduling.SchedulingException#OPERATION_FAILED * OPERATION_FAILED}, {@link * org.osid.scheduling.SchedulingException#PERMISSION_DENIED * PERMISSION_DENIED}, {@link * org.osid.scheduling.SchedulingException#CONFIGURATION_ERROR * CONFIGURATION_ERROR}, {@link * org.osid.scheduling.SchedulingException#UNIMPLEMENTED * UNIMPLEMENTED} * * @access public */ function getCreator() { $idManager = Services::getServices("Id"); $creatorIdString = $this->_getField('fk_creator_id'); //not created by anyone in particular if ($creatorIdString === "") { return null; } return $idManager->getId($creatorIdString); }
/** * Tests getNumberOfUsers() function. */ function test_services_object() { global $__services__; $this->assertReference(Services::getServices(), $__services__); }