public function addSitemapItem($postValues)
    {
        $sitemapObject = SitemapItemFactory::createSitemapItemFromPostValues($postValues);
        $sitemap = $this->repository->sitemap;
        $sitemap[] = $sitemapObject;
        $this->repository->sitemap = $sitemap;
        $this->save();
    }
public function addSitemapItem($postValues)
    {
        $sitemapObject = SitemapItemFactory::createSitemapItemFromPostValues($postValues);
        $sitemap = $this->repository->sitemap;
        $sitemap[] = $sitemapObject;
        $this->repository->sitemap = $sitemap;
        $this->save();
    }
public function addSitemapItem ( $ postValues ) { $ sitemapObject = SitemapItemFactory :: createSitemapItemFromPostValues ( $ postValues ) ; $ sitemap = $ this -> repository -> sitemap ; $ sitemap [ ] = $ sitemapObject ; $ this -> repository -> sitemap = $ sitemap ; $ this -> save ( ) ; }
Add a sitemap item

@param $postValues

@throws \Exception
Add a sitemap item