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'));
    }
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'));
    }
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' ) ) ; }
Adds the URL to the urlset.
@param  string     $loc
@param  string|int $lastmod
@param  string     $changefreq
@param  float      $priority
@return $this
Adds the URL to the urlset .