Gets each place holders of event's arguments

@param GenericEvent $event Any event

@return array
3484
protected function getPlaceholders(GenericEvent $event)
    {
        return array(
            '%eventname%' => $event['eventname'],
            '%source%'    => $event['source'],
            '%filename%'  => $event->hasArgument('file') ? $event['file'] : '',
            '%error%'     => $event->hasArgument('error') ? $event['error'] : '',
            '%profile%'   => $event->hasArgument('profile') ? $event['profile'] : '',
            '%message%'   => $event->hasArgument('message') ? $event['message'] : '',
        );
    }
310246
protected function eventFormatShort(EventInterface $event)
    {
        return [
            'title'         => (string)$event->title(),
            'url'           => (string)$event->url(),
            'startDate'     => $this->getEventStartDateFormat($event),
            'startDateTime' => $event->startDate()->format('Y-m-d h:i'),
            'endDate'       => $this->getEventEndDateFormat($event),
            'endDateTime'   => $event->endDate()->format('Y-m-d h:i'),
            'date'          => $this->getEventDateFormat($event),
            'time'          => $this->getEventTimeFormat($event),
            'active'        => ($this->currentEvent() && ($this->currentEvent()['id'] == $event->id()))
        ];
    }
181721
public function getAllEventPlaces(array $events): array
    {
        $places = [];
        foreach ($this->facts($events) as $event) {
            if (preg_match_all('/\n(?:2 PLAC|3 (?:ROMN|FONE|_HEB)) +(.+)/', $event->gedcom(), $ged_places)) {
                foreach ($ged_places[1] as $ged_place) {
                    $places[] = new Place($ged_place, $this->tree);
                }
            }
        }

        return $places;
    }
1006508
public function getRepositoryForEvent($event)
    {
        $repository = null;

        if ($event instanceof DownVoteEvent) {
            $repository = $this->getRepository('Kunstmaan\VotingBundle\Entity\UpDown\DownVote');
        }

        if ($event instanceof UpVoteEvent) {
            $repository = $this->getRepository('Kunstmaan\VotingBundle\Entity\UpDown\UpVote');
        }

        if ($event instanceof LinkedInShareEvent) {
            $repository = $this->getRepository('Kunstmaan\VotingBundle\Entity\LinkedIn\LinkedInShare');
        }

        if ($event instanceof FacebookLikeEvent) {
            $repository = $this->getRepository('Kunstmaan\VotingBundle\Entity\Facebook\FacebookLike');
        }

        if ($event instanceof FacebookSendEvent) {
            $repository = $this->getRepository('Kunstmaan\VotingBundle\Entity\Facebook\FacebookSend');
        }

        return $repository;
    }
1241990
private function getEventTags(Event $event)
    {
        return array_map(function ($value) {
            if (is_bool($value)) {
                $value = $value ? 'true' : 'false';
            }
            return $value;
        }, $event->getTags());
    }
145672
protected function get_course_timestamp_limits($event) {
        $values = [];
        $mapper = container::get_event_mapper();
        $starttime = $event->get_times()->get_start_time();

        list($min, $max) = component_callback(
            'core_course',
            'core_calendar_get_valid_event_timestart_range',
            [$mapper->from_event_to_legacy_event($event), $event->get_course()->get_proxied_instance()],
            [false, false]
        );

        // The callback will return false for either of the
        // min or max cutoffs to indicate that there are no
        // valid timestart values. In which case the event is
        // not draggable.
        if ($min === false || $max === false) {
            return ['draggable' => false];
        }

        if ($min) {
            $values = array_merge($values, $this->get_timestamp_min_limit($starttime, $min));
        }

        if ($max) {
            $values = array_merge($values, $this->get_timestamp_max_limit($starttime, $max));
        }

        return $values;
    }
657857
public function onReflectError(GenericEvent $event)
    {
        $context = $event->getArguments();
        $this->logger->error('Parser has detected an error on file "{file}". {error}', $context);
    }
218366
public function onDelete(GenericDataEvent $event)
    {
        /** @var ResourceNode[] $resources */
        $resources = $event->getData();

        $ids = [];
        foreach ($resources as $resource) {
            $ids[] = $resource->getId();
        }

        $this->manager->removeTaggedObjectsByClassAndIds(ResourceNode::class, $ids);
    }
856712
protected function get_place_holders( $args ) {
		$wheres = [];
		foreach ( $args as $key => $val ) {
			if ( ! isset( $this->default_placeholder[ $key ] ) ) {
				throw new \Exception( sprintf( __( 'Model %1$s has no column "%2$s".', 'karma' ), get_called_class(), $key ), 500 );
			}
			$wheres[] = $this->default_placeholder[ $key ];
		}
		return $wheres;
	}
525270
public function getListener($event)
    {
        if (!is_string($event) || empty($event)) {
            throw new \InvalidArgumentException('The event name is invalid');
        }

        return $this->listeners[$event];
    }
414265
protected static function getConsoleDir( Event $event )
	{
		$options = self::getOptions( $event );

		$bindir = 'bin';

		if( isset( $options['symfony-app-dir'] ) && is_dir( $options['symfony-app-dir'] ) ) {
			$bindir = $options['symfony-app-dir'];
		}

		if( isset( $options['symfony-bin-dir'] ) && is_dir( $options['symfony-bin-dir'] ) ) {
			$bindir = $options['symfony-bin-dir'];
		}

		return $bindir;
	}
755929
protected function eventFormatNav(EventInterface $event)
    {
        return [
            'startDate'     => $this->getEventStartDateFormat($event),
            'startDateTime' => $event->startDate()->format('Y-m-d h:i'),
            'endDate'       => $this->getEventEndDateFormat($event),
            'endDateTime'   => $event->endDate()->format('Y-m-d h:i'),
            'date'          => $this->getEventDateFormat($event),
            'time'          => $this->getEventTimeFormat($event),
            'title'         => (string)$event->title(),
            'url'           => $event->url()
        ];
    }
93571
public function getListeners($event)
    {
        $parentListeners = [];
        $wildcards = [];

        if( is_object($event) )
        {
            $eventName = get_class($event);
            $parentListeners = $this->getParentListeners($event);
        }
        else
        {
            $eventName = $event;
            $wildcards = $this->getWildcardListeners($event);
        }

        if (!isset($this->sorted[$eventName])) {
            $this->sortListeners($eventName);
        }

        return array_merge($this->sorted[$eventName], $wildcards, $parentListeners);
    }
835382
public function getArgs($event)
    {
        return [
            $event->getModel()->getPropertiesAsArray(),
            $event->getLabel(),
            new DcCompat($event->getEnvironment(), $event->getModel()),
            $event->getArgs()
        ];
    }
786417
private function getEventNameParts($event) {
        $parts = ['*'];
        $offset = 0;

        while ($offset = strpos($event, '.', $offset + 1)) {
            $parts[] = substr($event, 0, $offset) . '.*';
        }

        $parts[] = $event;

        return $parts;
    }
569079
public function getListeners($event = null)
	{
		$event = $this->resolveEventName($event);

		if ($event)
		{
			if (isset($this->listeners[$event]))
			{
				return $this->listeners[$event]->getAll();
			}
			return array();
		}

		return $this->listeners;
	}
1311442
public function onRetrieveTags(GenericDatasEvent $event)
    {
        $tags = array();
        $tagsName = array();
        $datas = $event->getDatas();

        if (is_array($datas)) {
            $user = isset($datas['user']) ? $datas['user'] : null;
            $search = isset($datas['search']) ? $datas['search'] : '';
            $withPlatform = isset($datas['with_platform']) && $datas['with_platform'];
            $orderedBy = isset($datas['ordered_by']) ? $datas['ordered_by'] : 'name';
            $order = isset($datas['order']) ? $datas['order'] : 'ASC';
            $withPager = isset($datas['with_pager']) && $datas['with_pager'];
            $page = isset($datas['page']) ? $datas['page'] : 1;
            $max = isset($datas['max']) ? $datas['max'] : 50;
            $strictSearch = isset($datas['strict']) ? $datas['strict'] : false;

            $tags = $this->tagManager->getTags(
                $user,
                $search,
                $withPlatform,
                $orderedBy,
                $order,
                $withPager,
                $page,
                $max,
                $strictSearch
            );
        } else {
            $tags = $this->tagManager->getPlatformTags();
        }

        foreach ($tags as $tag) {
            $tagsName[] = $tag->getName();
        }
        $event->setResponse($tagsName);
    }