Renders a &lt;url&gt; element to the XML document.

@param  string     $url     The URL
@param  int|string $lastmod The modification date
@return $this
188709
private function addUrl($url, $lastmod = null): self
    {
        if (strpos($url, 'http://') !== 0 && strpos($url, 'https://') !== 0) {
            $url = hu.ltrim($url, '/');
        }

        if (preg_match('/[\'"<>]/', $url)) {
            $url = htmlspecialchars($url, ENT_QUOTES);
        }

        if (isset($this->addUrlset[$url])) {
            return $this;
        }

        if ($lastmod !== null) {
            if (!is_int($lastmod)) {
                $lastmod = strtotime($lastmod);
            }

            if ($lastmod !== false) {
                $lastmod = safe_strftime('iso8601', $lastmod);
            }
        }

        $this->addUrlset[$url] =
            '<url>'.
                '<loc>'.$url.'</loc>'.
                ($lastmod ? '<lastmod>'.$lastmod.'</lastmod>' : '').
            '</url>';

        return $this;
    }
246289
function renderLast($tag = 'Última') {
        if ($this->total_rows == 0)
            return FALSE;
         
        if ($this->page == $this->max_pages) {
            return $tag;
        } else {
            //return ' <a href="' . $this->php_self . '?page=' . $this->max_pages . '&' . $this->append . '">' . $tag . '</a>';
            $pageno = $this->max_pages;
            return " <a href='javascript:void(0);' OnClick='getdata( $pageno )' title='Última'>$tag</a> ";
        }
    }
1334587
public function setLastModification($lastModification)
    {
        if ($lastModification instanceof \DateTime) {
            $lastModification = new LastModification($lastModification);
        }
        $this->elements[self::ELEMENT_LASTMOD] = $lastModification;

        return $this;
    }
1124720
private function wrapUrl($url)
    {
        if ($this->balancer) {
            $url = sprintf('%s?url=%s', $this->balancer, urlencode($url));
        }

        $this->lastUrl = $url;

        return $url;
    }
477353
public function setLastMod($lastmod)
    {
        self::writeFullTag(
            $lastmod,
            'lastmod',
            false,
            'lastmod',
            $this->validator,
            'validateLastmod',
            $this->exception,
            'Provided modification date is not a valid value.'
        );

        return $this;
    }
409284
public function externalUrl($url)
    {
        $this->link_type = self::LINK_EXTERNAL_URL;
        $this->link_value = [$url];
        $this->setOpenNewWindowOption();
        $this->setActive(false);

        return $this;
    }
153305
public function setUrl ($url) {
		if (!is_string($url) && is_callable($url)) {
			$this->nextUrl = $url($this->render);
		} else {
			$this->nextUrl = is_callable($url) ? $url() : $url;
		}
	}
380224
public function modify()
    {
        $updLastModStm = $this->connection->prepare("UPDATE Page SET last_modified=FROM_UNIXTIME(?) WHERE page_id=?");
        $updLastModStm->bindParam(1, $this->lastModified);
        $updLastModStm->bindParam(2, $this->page_id);
        $this->lastModified = time();
        $updLastModStm->execute();
        return $this->lastModified;

    }
988540
static public function rUrl($url)
    {
        $module = null;
        if (strpos($url, 'http') !== 0 && ($pos = strpos($url, ':')) !== false) {    // 1. "x:a/b" module or xUrl
            $module = trim(substr($url, 0, $pos), '/');
            $url   = trim(substr($url, $pos + 1), '/');
        }
        
        if (strpos($url, 'http') === 0) {
            $url = str_replace(static::url($module . ':'), '', $url);
        }
        
        return trim($url, '/');
    }
599022
public function action(String $url = NULL)
    {
        $this->settings['attr']['action'] = IS::url($url) ? $url : Request::getSiteURL($url);

        return $this;
    }
819282
public function url($url)
    {
        if ($this->isNotSetOrEmpty($url)) {
            throw CouldNotCreateButton::urlNotProvided();
        } elseif (! filter_var($url, FILTER_VALIDATE_URL)) {
            throw CouldNotCreateButton::invalidUrlProvided($url);
        }

        $this->payload['url'] = $url;
        $this->isTypeWebUrl();

        return $this;
    }
903567
public function setLast($last)
    {
        $this->_links[self::LAST][self::HREF] = $last;
        $this->removeEmptyLinks();

        return $this;
    }
696375
public function setUrl($url)
    {
        if (strlen($url) == 0) {
            throw new \InvalidArgumentException(sprintf('Enclosure URL should not be empty'));
        }

        $this->url = $url;

        return $this;
    }
256267
public function add($loc, $lastmod = null, $changefreq = null, $priority = null)
    {
        $loc     = $this->escapeString($loc);
        $lastmod = !is_null($lastmod) ? $this->formatDate($lastmod) : null;

        return $this->addUrlToDocument(compact('loc', 'lastmod', 'changefreq', 'priority'));
    }
1126690
public static long getLastModified(String url) throws MalformedURLException {
		HttpServletRequest request = getRequest();
		// Get the context-relative path (resolves relative paths)
		String resourcePath = ServletUtil.getAbsolutePath(
			Dispatcher.getCurrentPagePath(request),
			url
		);
		if(resourcePath.startsWith("/")) {
			return LastModifiedServlet.getLastModified(
				getServletContext(),
				request,
				resourcePath
			);
		}
		return 0;
	}
607878
public function postXML($url, $data = null)
    {
        $responseBody = $this->post($url, $data, 'application/xml');

        return new QuiteSimpleXMLElement($responseBody);
    }
131732
protected static function parse($url, array $options = [])
    {
        if (!empty($options['lastmod']) && !is_string($options['lastmod'])) {
            $options['lastmod'] = $options['lastmod']->format('c');
        }
        $options += ['priority' => '0.5'];

        return array_merge(['loc' => Router::url($url, true)], $options);
    }