original_string: public static function add($category, $content, array $save = array())
      {
          $page = Page::html();
          if ($page->url['format'] != 'html') {
              return;
          }
          $page->filter('response', function ($page, $response) use ($category, $content, $save) {
              if (empty($page->url['query'])) {
                  $sitemap = new Component();
                  $sitemap->upsert($category, array_merge(array(
                      'path' => $page->url['path'],
                      'title' => $page->title,
                      'description' => $page->description,
                      'keywords' => $page->keywords,
                      'image' => $page->image,
                      'content' => $content,
                  ), $save));
                  unset($sitemap);
              }
          }, array('html', 200));
      }
code: public static function add($category, $content, array $save = array())
      {
          $page = Page::html();
          if ($page->url['format'] != 'html') {
              return;
          }
          $page->filter('response', function ($page, $response) use ($category, $content, $save) {
              if (empty($page->url['query'])) {
                  $sitemap = new Component();
                  $sitemap->upsert($category, array_merge(array(
                      'path' => $page->url['path'],
                      'title' => $page->title,
                      'description' => $page->description,
                      'keywords' => $page->keywords,
                      'image' => $page->image,
                      'content' => $content,
                  ), $save));
                  unset($sitemap);
              }
          }, array('html', 200));
      }
code_tokens: public static function add ( $ category , $ content , array $ save = array ( ) ) { $ page = Page :: html ( ) ; if ( $ page -> url [ 'format' ] != 'html' ) { return ; } $ page -> filter ( 'response' , function ( $ page , $ response ) use ( $ category , $ content , $ save ) { if ( empty ( $ page -> url [ 'query' ] ) ) { $ sitemap = new Component ( ) ; $ sitemap -> upsert ( $ category , array_merge ( array ( 'path' => $ page -> url [ 'path' ] , 'title' => $ page -> title , 'description' => $ page -> description , 'keywords' => $ page -> keywords , 'image' => $ page -> image , 'content' => $ content , ) , $ save ) ) ; unset ( $ sitemap ) ; } } , array ( 'html' , 200 ) ) ; }
docstring: Include the current page in the sitemap if it is an HTML page, and has no query string.  Made static to save you the hassle of opening and closing the database.
  
  Use this method when you want to "set it, and forget it".  When adding (and updating) **$content** dynamically, then some of your links may be a bit outdated as we can only update them when they are accessed.  If this is unacceptable to you, then use the '**reset**', '**upsert**', and '**delete**' methods to keep everything up-to-date.  Using the static add method would be equivalent to the following code:
  
  ```php
  if (empty($page->url['query'])) {
  $sitemap = new Sitemap();
  $sitemap->upsert($category, array_merge(array(
  'path' => $page->url['path'],
  'title' => $page->title,
  'description' => $page->description,
  'keywords' => $page->keywords,
  'image' => $page->image,
  'content' => $content,
  ), $save));
  unset($sitemap);
  }
  ```
  
  @param string $category To group related links.
  @param string $content  The main body of your page.
  @param array  $save     Any additional information that you consider to be important, and would like to include with your search results.
  
  @example
  
  ```php
  Sitemap::add('pages', $html);
  ```
docstring_tokens: Include the current page in the sitemap if it is an HTML page and has no query string . Made static to save you the hassle of opening and closing the database .