Append item to sitemap.

@param (string) $url        Valid url.
@param (string) $lastMod    Last modify.
@param (float)  $priority   Priority.
@param (string) $changeFreq changeFreq.

@since 3.0.0

@return void
325318
private function appendItem($url, $lastMod, $priority, $changeFreq):void
    {
        $this->create('append', $url, $lastMod, $priority, $changeFreq);
    }
819811
public function add($text, moodle_url $url = null, $title = null, $sort = null) {
        $key = count($this->children);
        if (empty($sort)) {
            $sort = $this->lastsort + 1;
        }
        $this->children[$key] = new custom_menu_item($text, $url, $title, $sort, $this);
        $this->lastsort = (int)$sort;
        return $this->children[$key];
    }
376504
public static function send($url)
    {
        if (false === \filter_var($url, FILTER_VALIDATE_URL, ['options' => ['flags' => FILTER_FLAG_PATH_REQUIRED]])) {
            throw new SitemapException('The value for $url is not a valid URL resource.');
        }

        return self::submitSitemap($url);
    }
1009540
protected function addLastLink(&$lastLink)
    {
        $lastLink = $this->getLink($this->calculatePageRowNumberForLastLink(), $this->getStyleClassAttributes('last'), $this->lastName);
    }
842169
public function addPersonalItem($menuName, $url, $order = 50, $tooltip = false)
    {
        $this->addItem('UsersManager_MenuPersonal', $menuName, $url, $order, $tooltip);
    }
1095078
public function addJsUrl($url, $defer = false, $async = false)
    {
        if (!in_array($url, $this->js_urls)) {
            $this->js_urls[++$this->js_sequence] = $url;
            if ($defer) {
                $this->deferred_scripts[$this->js_sequence] = $this->js_sequence;
            }
            if ($async) {
                $this->async_scripts[$this->js_sequence] = $this->js_sequence;
            }
        }

        return $this;
    }
1067212
public function setPager ($total_count, $current_page, $url, $limit = PagerUtility::DISP_PER_PAGE, $options = []) {
 		$current_page	= $current_page ?: 1;
 		$options		= [
			'in_list_position'	=> $options['in_list_position']	?? 3,
			'max_link_disp'		=> $options['max_link_disp'] ?? 5,
 		];
 		$this->pager = PagerUtility::CreatePagerData($total_count, $current_page, $limit, $options);
 		$this->pager['enable']	= $total_count > $limit;
 		$this->pager['url']		= $url;

 		return $this->pager;
 	}
791339
public void addFile(String url) {
        int count = windowMenu.getItemCount();
        JMenuItem item;
        if (count == 4) {
            windowMenu.addSeparator();
            count++;
        }
        JMenuItem lastItem = windowMenu.getItem(count -1);
        boolean hasMoreWin = false;
        int maxWin = 5;
        if (lastItem != null &&
           lastItem.getText().equals("More Windows...")) {
            hasMoreWin = true;
            maxWin++;
        }
        if (!hasMoreWin && count - 4 == 5) {
            windowMenu.add(item = new JMenuItem("More Windows...", 'M'));
            item.setActionCommand("More Windows...");
            item.addActionListener(this);
            return;
        } else if (count - 4 <= maxWin) {
            if (hasMoreWin) {
                count--;
                windowMenu.remove(lastItem);
            }
            String shortName = SwingGui.getShortName(url);

            windowMenu.add(item = new JMenuItem((char)('0' + (count-4)) + " " + shortName, '0' + (count - 4)));
            if (hasMoreWin) {
                windowMenu.add(lastItem);
            }
        } else {
            return;
        }
        item.setActionCommand(url);
        item.addActionListener(this);
    }
672454
public function addUrl($location, $priority = 0.5, $lastModification = null, $changeFrequency = null)
    {
        $urlElement = $this->createElement('url');

        if (0 === strpos($location, '/')) {
            $location = $this->baseUri.$location;
        }
        $locElement = $this->createElement('loc');
        $locElement->appendChild($this->createTextNode($location));
        $urlElement->appendChild($locElement);

        $priorityElement = $this->createElement('priority');
        $priorityElement->appendChild($this->createTextNode((string) round($priority, 1)));
        $urlElement->appendChild($priorityElement);

        if (null !== $lastModification) {
            if ($lastModification instanceof \DateTime) {
                $lastModification = $lastModification->format('c');
            } else {
                if (is_string($lastModification)) {
                    $lastModification = strtotime($lastModification);
                }
                $lastModification = date('c', $lastModification);
            }

            $lastmodElement = $this->createElement('lastmod');
            $lastmodElement->appendChild($this->createTextNode($lastModification));
            $urlElement->appendChild($lastmodElement);
        }

        if (null !== $changeFrequency && in_array($changeFrequency, static::$frequency, true)) {
            $changefreqElement = $this->createElement('changefreq');
            $changefreqElement->appendChild($this->createTextNode($changeFrequency));
            $urlElement->appendChild($changefreqElement);
        }

        $this->root->appendChild($urlElement);

        return $this;
    }
768572
protected function _addPageNrParam($url, $currentPage, $languageId = null)
    {
        if (\OxidEsales\Eshop\Core\Registry::getUtils()->seoIsActive() && ($category = $this->getActiveCategory())) {
            if ($currentPage) {
                // only if page number > 0
                $url = $category->getBaseSeoLink($languageId, $currentPage);
            }
        } else {
            $url = parent::_addPageNrParam($url, $currentPage, $languageId);
        }

        return $url;
    }
550868
protected function _lastAction($url)
    {
        $action = Router::url($url, true);
        $query = parse_url($action, PHP_URL_QUERY);
        $query = $query ? '?' . $query : '';
        $this->_lastAction = parse_url($action, PHP_URL_PATH) . $query;
    }
663502
public function setUrl($url, $url_title = null) {
		if ($url == '') throw new \InvalidArgumentException('url parameter is empty');
		$this->url = $url;
		$this->url_title = $url_title;
	}
928110
public function updateLastmod()
    {
        if ($this->config->directory) {
            $lastmod = $this->config->directory . '/_lastmod.rah';

            if (!is_file($lastmod) || file_get_contents($lastmod) !== get_pref('lastmod', false, true)) {
                file_put_contents($lastmod, get_pref('lastmod', '', true));
            }
        }
    }
1311977
private function addFilterResAV($f, $priority = FilterChain::DEFAULT_PRIORITY) {
		$this->_filtersResAV->attach($f, $priority);
	}
883940
public function add_custom_item( $title, $link = '', $priority = 1000 ) {
		$custom_item = Carbon_Breadcrumb_Item::factory( 'custom', $priority );
		$custom_item->set_title( $title );
		$custom_item->set_link( $link );
		$custom_item->setup();
		$this->add_item( $custom_item );
	}
1224510
private function addSitemap()
    {
        $parsed = $this->parseURL($this->encode_url($this->current_word));
        if ($parsed !== false) {
            $this->sitemap[] = $this->current_word;
            $this->sitemap = array_unique($this->sitemap);
        }
    }
252390
public function url(string $url, string $title, int $order = null, string $icon = null, array $attributes = []): MenuItem
    {
        ! $this->urlPrefix || $url = $this->formatUrl($url);

        return $this->add(compact('url', 'title', 'order', 'icon', 'attributes'));
    }