Set associated sked_event_tags.

@param array $aEventTags Array of SkeVentTag objects.
@return $this
177628
public function setTags(array $aEventTags)
    {
        $this->aTags = [];

        foreach ($aEventTags as $iTagId => $skeVentTag) {
            if (!$skeVentTag instanceof SkeVentTag) {
                $skeVentTag = new SkeVentTag([
                    'tag_id' => $iTagId,
                    'value' => $skeVentTag,
                ]);
            }
            $this->aTags[$skeVentTag->tag_id] = $skeVentTag;
        }

        return $this;
    }
55731
public function publishedTags($publishedTags = [])
    {
        if (count($publishedTags) <= 0) {
            return $this->publishedTags;
        }

        $this->publishedTags = $publishedTags;
        return $this;
    }
204546
public function setBlackTagList(array $tags)
    {
        if (!$this->special_characters_allowed) {
            throw new RuntimeException('All special chars will be escaped. Set AllowHtml to use black list');
        }

        if ($this->white_tag_list) {
            throw new RuntimeException('White list already added.');
        }

        $this->black_tag_list = $tags;
    }
1299630
public function set(array $tags)
    {
        if (!empty($tags)) {
            foreach ($tags as $_tag) {
                if (is_array($_tag) && isset($_tag['name']) && isset($_tag['content'])) {
                    $this->add(
                        $_tag['name'],
                        $_tag['content'],
                        isset($_tag['http-equiv']) && true===$_tag['http-equiv'] ? true : false,
                        isset($_tag['condition']) ? $_tag['condition'] : null
                    );
                }
            }
        }
        return $this;
    }
1289308
public static function setEvents($pEvents = NULL)
    {
        if ($pEvents === NULL) {
            $pEvents = Agl::app()->getConfig('main/events');
        }

        if (is_array($pEvents)) {
            self::$_events = $pEvents;
        } else {
            self::$_events = array();
        }

        return self::$_events;
    }
191012
public function getTags()
    {
        if (!is_array($this->aTags) && $this->id) {
            $this->aTags = [];
            foreach (Sked::getEventTags($this->id) as $aEventTag)
                $this->aTags[$aEventTag['tag_id']] = new SkeVentTag($aEventTag);
        }
        return $this->aTags;
    }
689198
public function addEvents(array $events = array())
    {
        $events['projectId'] = $this->getConfig('projectId');
        $events['writeKey'] = $this->getKeyForWriting();

        $command = parent::getCommand('addEvents', $events);

        return $this->execute($command);
    }
1125717
public function logEvent(array $events = [])
    {
        foreach ($events as $event) {
            if (!in_array($event, $this->loggerInstance->logEvents, true)) {
                $this->loggerInstance->logEvents[] = $event;
            }
        }

        return $this;
    }
256738
public function setSpecialCaseTags(array $tags = array())
    {
        $this->specialCaseTags = $tags;
        $this->specialCaseOpeningTags = array();
        $this->specialCaseClosingTags = array();

        foreach ($this->specialCaseTags as $tag) {
            $this->addSpecialCaseTag($tag);
        }

        return $this;
    }
482823
public function setTags($post, $tags = [])
    {
        $event = new GenericDataEvent([
            'tags' => $tags,
            'data' => [
                [
                    'class' => 'Icap\BlogBundle\Entity\Post',
                    'id' => $post->getUuid(),
                    'name' => $post->getTitle(),
                ],
            ],
            'replace' => true,
        ]);

        $this->eventDispatcher->dispatch('claroline_tag_multiple_data', $event);
    }
487656
protected function setArrayToArrayKbr(array $aElements)
    {
        $aReturn = [];
        foreach ($aElements as $key => $value) {
            $aReturn[str_replace(' ', '<br/>', $key)] = $value;
        }
        return $aReturn;
    }
1151188
public function attachEvents($events=array()) {
		if (\is_array($events)) {
			foreach ( $events as $action => $selector ) {
				$this->attachEvent($selector, $action);
			}
		}
		return $this;
	}
502909
public function setTags($tags)
    {
        foreach ($tags as $key => $value) {
            $this->setTag($key, $value);
        }
    }
819195
public function tags($tags = null)
    {
        $this->cacheTags = $tags === false ? false : $tags;
        return $this;
    }
962065
public function setTags(array $preTags, array $postTags)
    {
        $this->tags['pre_tags'] = $preTags;
        $this->tags['post_tags'] = $postTags;

        return $this;
    }
202858
public function setTags($tags)
    {
        $this->_tags = $tags;
        $this->_tagsDirty = true;
        $this->_currentTags = null;
    }
593450
public function syncTags($tags)
    {
        /** @var Tag $className */
        $className = static::getTagClassName();

        $tags = collect($className::findOrCreate($tags));

        $this->tags()->sync($tags->pluck('id')->toArray());

        return $this;
    }