@param int $eventId

@return array
333975
public function EventDetail($eventId)
    {
        $request = new Request();

        if (null == $eventId) {
            throw new InvalidArgumentException('eventId');
        }

        return $this->doRequest('Event/Detail', $request, array('Id' => $eventId))->getContentJson();
    }
209139
public static function getEvents($id)
    {
        global $config;
        $req = "
            SELECT idEvenement
            FROM _personneEvenement
            WHERE idPersonne = '".$id."'
        ";
        $res = $config->connexionBdd->requete($req);
        $e=new archiEvenement();
        return $e->getEvenementsLies(mysql_fetch_object($res)->idEvenement);
    }
303267
public function getEventTypes($eventName) {
        $filter = is_array($eventName) ? $eventName : array(
            'EVENT_NAME' => $eventName,
        );

        $dbres = \CEventType::GetList($filter);
        return $this->fetchAll($dbres);
    }
1190104
public function getListeners($eventName = NULL)
	{
		if($eventName === NULL)
		{
			$listeners = [];
			
			foreach(array_keys($this->listeners) as $k)
			{
				$listeners[$k] = [];
				
				foreach(clone $this->listeners[$k] as $listener)
				{
					$listeners[$k][] = $listener;
				}
			}
			
			ksort($listeners);
			
			return $listeners;
		}
		
		if($eventName instanceof \ReflectionClass)
		{
			$eventName = $eventName->name;
		}
		
		if(empty($this->listeners[$eventName]))
		{
			return [];
		}
		
		$listeners = [];
		
		foreach(clone $this->listeners[$eventName] as $listener)
		{
			$listeners[] = $listener;
		}
		
		return $listeners;
	}
1235138
public function getListeners(string $eventName) : array
    {
        if (!isset($this->events[$eventName])) {
            return [];
        }

        return $this->events[$eventName];
    }
101021
protected function getWildcardListeners($eventName)
	{
		$wildcards = array();

		foreach ($this->wildcards as $key => $listeners)
		{
			if (str_is($key, $eventName)) $wildcards = array_merge($wildcards, $listeners);
		}

		return $wildcards;
	}
137860
public function exportEventTypes($eventName) {
        $exports = array();
        $items = $this->getEventTypes($eventName);
        foreach ($items as $item) {
            $exports[] = $this->prepareExportEventType($item);
        }
        return $exports;
    }
215769
public function findPageUidsWithContentsFromPid(int $pageId) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $queryBuilder->getRestrictions()->removeAll();
        $queryBuilder->getRestrictions()->add(GeneralUtility::makeInstance(DeletedRestriction::class));

        $queryBuilder
            ->select('uid')
            ->from($this->table)
            ->add('where',
                $queryBuilder->expr()->eq('content_from_pid', $queryBuilder->createNamedParameter($pageId, \PDO::PARAM_INT))
            );

        $this->addDefaultLanguageUidConstraint($queryBuilder);

        return $queryBuilder->execute()->fetchAll();
    }
2684
protected function getJobFromQueue(string $workerId) : array
    {
        $workerJobCapabilities = $this->workerJobCapabilities[$workerId];
        foreach ($workerJobCapabilities as $jobName) {
            if (!isset($this->jobQueues[$jobName])) {
                continue;
            }
            if (empty($this->jobQueues[$jobName])) {
                continue;
            }
            $jobData = array_shift($this->jobQueues[$jobName]);
            $jobData['job_name'] = $jobName;
            $this->jobsInQueue--;
            return $jobData;
        }
        return [];
    }
743755
public function getEventLogInfo(Event $event, $eventName)
    {
        $this->default = array(
            'type' => $eventName,
            'description' => $eventName,
        );

        if (!isset($this->commands[$eventName])) {
            return $this->default;
        }

        return $this->getEventLogDetails($event, $this->commands[$eventName]);
    }
1173669
private static function getExtraConfig(Event $event) : array
    {
        $extra = $event->getComposer()->getPackage()->getExtra();
        return is_array($extra) ? $extra : [];
    }
588925
public function getItemAccessControls(string $itemId, string $userId = ''):array
    {
        if (! empty($userId)) {
            return $this->get("AccessControls(principalid={$userId},itemid={$itemId})");
        } else {
            return $this->get("Items({$itemId})/AccessControls");
        }
    }
1136302
public function getListeners( $eventName = NULL )
    {
        if ( NULL !== $eventName )
        {
            if ( !isset( $this->_sorted[ $eventName ] ) )
            {
                $this->sortListeners( $eventName );
            }

            return $this->_sorted[ $eventName ];
        }

        foreach ( array_keys( $this->listeners ) as $eventName )
        {
            if ( !isset( $this->_sorted[ $eventName ] ) )
            {
                $this->sortListeners( $eventName );
            }
        }

        return array_filter( $this->_sorted );
    }
747052
public function serialize(Event $event)
    {
        $editable = $event->getWorkspace() ?
            $this->authorization->isGranted('EDIT', $event) :
            false !== $event->isEditable();

        return [
            'id' => $event->getId(),
            'title' => $event->getTitle(),
            'start' => $event->getStart() ? DateNormalizer::normalize($event->getStart()) : null,
            'end' => $event->getEnd() ? DateNormalizer::normalize($event->getEnd()) : null,
            'color' => $event->getPriority(),
            'allDay' => $event->isAllDay(),
            'durationEditable' => !$event->isTask() && false !== $event->isEditable(),
            'owner' => $this->userSerializer->serialize($event->getUser()),
            'description' => $event->getDescription(),
            'workspace' => $event->getWorkspace() ? $this->workspaceSerializer->serialize($event->getWorkspace(), [Options::SERIALIZE_MINIMAL]) : null,
            'className' => 'event_'.$event->getId(),
            'editable' => $editable,
            'meta' => $this->serializeMeta($event),
        ];
    }
311515
public function get($eventId, array $params = array())
    {
        $endpoint = '/admin/events/'.$eventId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(Event::class, $response['event']);
    }
636156
protected function getTriggers(EventInterface $event)
    {
        $eventName  = $event->getName();
        $eventClass = get_class($event);

        $search = [];

        if (isset($this->events[$eventName])) {
            $search[] = $this->events[$eventName];
        }
        if (isset($this->events[$eventClass])) {
            $search[] = $this->events[$eventClass];
        }

        $parent = $event;
        while ($parent = get_parent_class($parent)) {
            if (isset($this->events[$parent])) {
                $search[] = $this->events[$parent];
            }
        }

        if (empty($search)) {
            return $search;
        }

        $triggers = call_user_func_array('array_merge_recursive', $search);

        krsort($triggers);

        return call_user_func_array('array_merge', $triggers);
    }
1320312
public function listenersOfEvent(Event $event)
    {
        $event_name = get_class($event);
        $this->lazyLoad($event_name);

        return array_values($this->listeners[$event_name]);
    }