/** * */ public function getChildrenTagAction(Tag $tag, Request $request) { $config = $this->getConfiguration(); $view = $this->view()->setTemplate($config->getTemplate('listtagsajax.html'))->setData(array('nodes' => $tag->getChildren(), 'parent' => $tag->getId(), 'mmId' => $request->get('mm_id'), 'block_tag' => $request->get('tag_id'))); return $this->handleView($view); }
/** * Find one series with tag * * @param Tag|EmbeddedTag $tag * @return Series */ public function findOneSeriesFieldWithTag(Tag $tag) { return $this->createStandardQueryBuilder()->field('tags._id')->equals(new \MongoId($tag->getId()))->distinct('series')->getQuery()->getSingleResult(); }
/** * Construct */ public function __construct(Tag $tag) { if (null !== $tag) { $this->id = $tag->getId(); $this->setI18nTitle($tag->getI18nTitle()); $this->setI18nDescription($tag->getI18nDescription()); $this->slug = $tag->getSlug(); $this->cod = $tag->getCod(); $this->metatag = $tag->getMetatag(); $this->display = $tag->getDisplay(); $this->locale = $tag->getLocale(); $this->created = $tag->getCreated(); $this->updated = $tag->getUpdated(); $this->path = $tag->getPath(); $this->level = $tag->getLevel(); } }