src/BoomCMS/Support/Helpers.php
public static function getTags()
    {
        $finder = new Tag\Finder\Finder();

        foreach (func_get_args() as $arg) {
            if (is_string($arg)) {
                $finder->addFilter(new Tag\Finder\Group($arg));
            } elseif ($arg instanceof PageInterface) {
                $finder->addFilter(new Tag\Finder\AppliedToPage($arg));
            } elseif ($arg instanceof TagInterface) {
                $finder->addFilter(new Tag\Finder\AppliedWith($arg));
            }
        }

        return $finder
            ->setOrderBy('group', 'asc')
            ->setOrderBy('name', 'asc')
            ->findAll();
    }
public static function getTags()
    {
        $finder = new Tag\Finder\Finder();

        foreach (func_get_args() as $arg) {
            if (is_string($arg)) {
                $finder->addFilter(new Tag\Finder\Group($arg));
            } elseif ($arg instanceof PageInterface) {
                $finder->addFilter(new Tag\Finder\AppliedToPage($arg));
            } elseif ($arg instanceof TagInterface) {
                $finder->addFilter(new Tag\Finder\AppliedWith($arg));
            }
        }

        return $finder
            ->setOrderBy('group', 'asc')
            ->setOrderBy('name', 'asc')
            ->findAll();
    }
public static function getTags ( ) { $ finder = new Tag \ Finder \ Finder ( ) ; foreach ( func_get_args ( ) as $ arg ) { if ( is_string ( $ arg ) ) { $ finder -> addFilter ( new Tag \ Finder \ Group ( $ arg ) ) ; } elseif ( $ arg instanceof PageInterface ) { $ finder -> addFilter ( new Tag \ Finder \ AppliedToPage ( $ arg ) ) ; } elseif ( $ arg instanceof TagInterface ) { $ finder -> addFilter ( new Tag \ Finder \ AppliedWith ( $ arg ) ) ; } } return $ finder -> setOrderBy ( 'group' , 'asc' ) -> setOrderBy ( 'name' , 'asc' ) -> findAll ( ) ; }
Get tags matching given parameters.
Accepts a page, group name, or tag as arguments in any order to search by.


@return array
Get tags matching given parameters . Accepts a page group name or tag as arguments in any order to search by .