Template variable getter. Returns links list

@return object
355272
public function getLinksList()
    {
        if ($this->_oLinksList === null) {
            $this->_oLinksList = false;
            // Load links
            $oLinksList = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);
            $oLinksList->init("oxlinks");
            $oLinksList->getList();
            $this->_oLinksList = $oLinksList;
        }

        return $this->_oLinksList;
    }
118346
public function get_links(string $id): ?array
  {
    return $this->_get_links($id, $this->id_user, $this->id_group);
  }
1059445
static function fetchLinkList( $contentObjectAttributeID, $contentObjectAttributeVersion, $asObject = true )
    {
        $linkList = array();

        $urlObjectLinkList = self::fetchLinkObjectList( $contentObjectAttributeID, $contentObjectAttributeVersion, $asObject );

        foreach ( $urlObjectLinkList as $urlObjectLink )
        {
            if ( $asObject )
            {
                $linkID = $urlObjectLink->attribute( 'url_id' );
                $linkList[] = eZURL::fetch( $linkID );
            }
            else
            {
                $linkID = $urlObjectLink['url_id'];
                $linkList[] = $linkID;
            }
        }
        return $linkList;
    }
622386
protected function _getPaginationLinks($pagination)
    {
        $links = [
            Link::SELF => null,
            Link::FIRST => null,
            Link::LAST => null,
            Link::PREV => null,
            Link::NEXT => null,
        ];

        if (isset($pagination['self'])) {
            $links[Link::SELF] = new Link($pagination['self'], null, true);
        }

        if (isset($pagination['first'])) {
            $links[Link::FIRST] = new Link($pagination['first'], null, true);
        }

        if (isset($pagination['last'])) {
            $links[Link::LAST] = new Link($pagination['last'], null, true);
        }

        if (isset($pagination['prev'])) {
            $links[Link::PREV] = new Link($pagination['prev'], null, true);
        }

        if (isset($pagination['next'])) {
            $links[Link::NEXT] = new Link($pagination['next'], null, true);
        }

        return $links;
    }
792617
public function getUrls()
    {
        $entities = [];
        if ($this->entity->getUrls()) {
            foreach ($this->entity->getUrls() as $entity) {
                $entities[] = $entity;
            }
        }

        return $entities;
    }
502325
public function generateLinks() {
        return '<' . $this->generateUrl($this->getNextPageQueryCriteria()) . '>; rel="next",'
        . '<' . $this->generateUrl($this->getLastPageQueryCriteria()) . '>; rel="last",'
        . '<' . $this->generateUrl($this->getFirstPageQueryCriteria()) . '>; rel="first",'
        . '<' . $this->generateUrl($this->getPreviousPageQueryCriteria()) . '>; rel="prev"';
    }
874853
public function extractLinks()
    {
        if ($this->extractedLinks) {
            return $this->extractedLinks;
        }

        if (!is_html($this->body)) {
            return [];
        }

        $libxmlPreviousState = libxml_use_internal_errors(true);

        $dom = new DOMDocument;
        $dom->loadHTML($this->body);

        libxml_clear_errors();
        libxml_use_internal_errors($libxmlPreviousState);

        $links = [];

        foreach ($this->tags as $tag => $attribute) {
            foreach ($dom->getElementsByTagName($tag) as $element) {
                $link = $element->getAttribute($attribute);

                if (!$link) {
                    continue;
                }

                $links[] = clean_url(url_to_absolute($this->url, $link), true, true);
            }
        }

        return $this->extractedLinks = array_unique($links);
    }
101298
public function getList()
    {
        $objects = $this->manager->findAll();
        $this->addPaginationData($objects);
        $objects = $objects->getItems();
        if (empty($objects)) {
            $this->addInfoMessage(self::INFO_NO_ENTRIES_FOUND);
        }
        return $objects;
    }
898407
public function getLinks()
    {

        if( isset( $this->links ) ) {
            return $this->links;
        }

        // build links
        $this->links = array();

        foreach( $this->getAttributes() as $column ) {

            /* This relation has a link if it has a attribute which has all of the following
             *   1. Is unique and is referenced by another attribute
                    TODO. Pete: We don't currently support dual column foreign key constraints
             *   2. This another attribute is one half of a dualcolumn primary key
             *      TODO. Pete: I think this can be relaxed a little. We just need a unique constraint which references two tables
             *   3. The other half of the primary references another unique constraint in another table
             */
            // See 1.
            if( $column->isUnique() and ( $references = $column->getIsReferencedBy() ) ) {

                foreach( $references as $reference ) {

                    // See 2.
                    if( $reference->isPrimaryKey() and count( $primaryKeys = $reference->getRelation()->getPrimaryKeys() ) == 2 ) {

                        $primaryKeys->remove( $reference );
                        $otherHalfofPrimaryKey = $primaryKeys->pop();

                        // See 3.
                        $otherReferences = $otherHalfofPrimaryKey->getReferences();
                        $foreignEntities = new BaseContainer();
                        foreach( $otherReferences as $otherReference ) {

                            // Pete. We might not need the unique check here because foreign keys already have uniqueness enforced
                            if( $otherReference->isUnique() and $otherReference->getRelation() !== $this ) {

                                $foreignEntities[] = $foreignEntities->add( $otherReference->getRelation() );
                                $foreignEntityReference = $otherReference;

                            }

                        }

                        // have we a link?
                        if( $foreignEntities ) {

                            $sourceEntity = $this->getEntityName();
                            $linkEntity = $otherHalfofPrimaryKey->getRelation()->getEntityName();

                            $refSource = array( $column->name, $reference->name );
                            $refForeign = array( $otherHalfofPrimaryKey->name, $foreignEntityReference->name );

                            // get columns and look for a ranking columns
                            $possibleRankingAttributes = $otherHalfofPrimaryKey->getRelation()->getAttributes();
                            $possibleRankingAttributes->remove( $otherHalfofPrimaryKey, $reference );

                            $sortColumn = null;
                            $rankingRegex = "/^{$otherHalfofPrimaryKey->name}_?(r|rank|ranking)$/i";
                            foreach( $possibleRankingAttributes as $ranking ) {

                                if( $ranking->getType()->isNumeric() and preg_match( $rankingRegex, $ranking->name ) ) {
                                    $sortColumn = $ranking->name;
                                    break;
                                }

                            }

                            // sort foreignEntities, we want 'root' entity first then alphabetical
                            $foreignEntities = $foreignEntities
                                ->sort(
                                    function($a, $b){
                                        if( $a->isInherited() and !$b->isInherited() ) {
                                            return 1;
                                        }
                                        return $a->getEntityName() < $b->getEntityName() ? -1 : 1;
                                    }
                                )
                                ->map(function ($e) {
                                    return $e->getEntityName();
                                });

                            $this->links[$linkEntity] = new Link(
                                $sourceEntity,
                                $linkEntity,
                                array_values( $foreignEntities ),
                                $refSource,
                                $refForeign,
                                $sortColumn
                            );

                        }

                    }

                }

            }

        }

        return $this->links;

    }
1231626
public function getWebs()
    {
        if(!$this->isPropertyAvailable('Webs')){
            $this->setProperty("Webs", new WebCollection($this->getContext(),new ResourcePathEntity($this->getContext(),$this->getResourcePath(),"webs")));
        }
        return $this->getProperty("Webs");
    }
1361685
public function getLinkPage()
    {
        $pageId = (int) $this->getParsedValue()->PageID;
        if (!$pageId) {
            return null;
        }

        return DataObject::get_by_id(SiteTree::class, $pageId);
    }
1243506
public function getLink()
    {
        return ($this->_link === null) ? Yii::$app->menu->buildItemLink($this->alias, $this->getLang()) : $this->_link;
    }
168239
protected function getListResource()
    {
        $items = $this->getListItems();
        $count = $items->count();
        /** @var string $treeClass */
        $treeClass = $this->config()->get('tree_class');
        $hal = [
            'count' => $count,
            'total' => $count,
            '_links' => [
                'self' => [
                    'href' => $this->Link('items')
                ]
            ],
            '_embedded' => [$treeClass => []]
        ];
        /** @var ChangeSet $item */
        foreach ($items as $item) {
            $sync = $this->shouldCampaignSync($item);
            $resource = $this->getChangeSetResource($item, $sync);
            $hal['_embedded'][$treeClass][] = $resource;
        }
        return $hal;
    }
491028
protected function getLinks()
    {
        if ($this->simple) {
            return '';
        }

        $block = [
            'first'  => null,
            'slider' => null,
            'last'   => null,
        ];

        $side   = 3;
        $window = $side * 2;

        if ($this->lastPage < $window + 6) {
            $block['first'] = $this->getUrlRange(1, $this->lastPage);
        } elseif ($this->currentPage <= $window) {
            $block['first'] = $this->getUrlRange(1, $window + 2);
            $block['last']  = $this->getUrlRange($this->lastPage - 1, $this->lastPage);
        } elseif ($this->currentPage > ($this->lastPage - $window)) {
            $block['first'] = $this->getUrlRange(1, 2);
            $block['last']  = $this->getUrlRange($this->lastPage - ($window + 2), $this->lastPage);
        } else {
            $block['first']  = $this->getUrlRange(1, 2);
            $block['slider'] = $this->getUrlRange($this->currentPage - $side, $this->currentPage + $side);
            $block['last']   = $this->getUrlRange($this->lastPage - 1, $this->lastPage);
        }

        $html = '';

        if (is_array($block['first'])) {
            $html .= $this->getUrlLinks($block['first']);
        }

        if (is_array($block['slider'])) {
            $html .= $this->getDots();
            $html .= $this->getUrlLinks($block['slider']);
        }

        if (is_array($block['last'])) {
            $html .= $this->getDots();
            $html .= $this->getUrlLinks($block['last']);
        }

        return $html;
    }
153412
public function getArray()
    {
        $curpage = intval(isset($_GET[$this->param]) ? $_GET[$this->param] : 1);
        return $this->getLink($this->url, $curpage);
    }
281103
public function getLink()
    {
        return Controller::join_links(
            $this->Blog()->Link(),
            $this->getListUrlSegment(),
            $this->URLSegment
        );
    }
102351
public function links()
    {
        $links = array();
        foreach ($this->nodes as $node) {
            if (!$node instanceof \DOMElement) {
                throw new \InvalidArgumentException(sprintf('The current node list should contain only DOMElement instances, "%s" found.', get_class($node)));
            }

            $links[] = new Link($node, $this->baseHref, 'get');
        }

        return $links;
    }