*/ namespace oat\taoProctoring\model; use oat\oatbox\service\ConfigurableService; use oat\oatbox\user\User; /** * Service which allows to use many proctorServices according to condition * Class ProctorServiceDelegator * @package oat\taoProctoring\model */ class ProctorServiceDelegator extends ServiceDelegator { /** @deprecated need to be used SERVICE_HANDLERS */ const PROCTOR_SERVICE_HANDLERS = self::SERVICE_HANDLERS; /** * (non-PHPdoc) * @see \oat\taoProctoring\model\ProctorServiceInterface::getProctorableDeliveries() */ public function getProctorableDeliveries(User $proctor, $context = null) { return $this->getResponsibleService($proctor)->getProctorableDeliveries($proctor, $context); } /** * (non-PHPdoc) * @see \oat\taoProctoring\model\ProctorServiceInterface::getProctorableDeliveryExecutions() */ public function getProctorableDeliveryExecutions(User $proctor, $delivery = null, $context = null, $options = []) { $deliveryId = $delivery ? $delivery->getUri() : null; return $this->getResponsibleService($proctor, $deliveryId)->getProctorableDeliveryExecutions($proctor, $delivery, $context, $options); } /** * (non-PHPdoc) * @see \oat\taoProctoring\model\ProctorServiceInterface::countProctorableDeliveryExecutions() */ public function countProctorableDeliveryExecutions(User $proctor, $delivery = null, $context = null, $options = []) { $deliveryId = $delivery ? $delivery->getUri() : null; return $this->getResponsibleService($proctor, $deliveryId)->countProctorableDeliveryExecutions($proctor, $delivery, $context, $options); } }