• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / modules/sitemaps/sitemap-buffer.php


Lines:

1 to 35 of 35
<?php

/**
 * Sitemaps (per the protocol) are essentially lists of XML fragments;
 * lists which are subject to size constraints. The Jetpack_Sitemap_Buffer
 * class abstracts the details of constructing these lists while
 * maintaining the constraints.
 *
 * @since 4.8.0
 * @package Jetpack
 */

/* class Jetpack_Sitemap_Buffer */
/* function Jetpack_Sitemap_Buffer::__construct() – Construct a new Jetpack_Sitemap_Buffer. */
/* function Jetpack_Sitemap_Buffer::get_root_element() – Returns a DOM element that contains all sitemap elements. */
/* function Jetpack_Sitemap_Buffer::try_to_add_item() – Append an item to the buffer, if there is room for it,
and set is_empty_flag to false. If there is no room,
we set is_full_flag to true. If $item is null,
don’t do anything and report success. */
/* function Jetpack_Sitemap_Buffer::append() – Append an item to the buffer, if there is room for it,
and set is_empty_flag to false. If there is no room,
we set is_full_flag to true. If $item is null,
don’t do anything and report success. */
/* function Jetpack_Sitemap_Buffer::contents() – Retrieve the contents of the buffer. */
/* function Jetpack_Sitemap_Buffer::get_document() – Retrieve the document object. */
/* function Jetpack_Sitemap_Buffer::is_full() – Detect whether the buffer is full. */
/* function Jetpack_Sitemap_Buffer::is_empty() – Detect whether the buffer is empty. */
/* function Jetpack_Sitemap_Buffer::view_time() – Update the timestamp of the buffer. */
/* function Jetpack_Sitemap_Buffer::last_modified() – Retrieve the timestamp of the buffer. */
/* function Jetpack_Sitemap_Buffer::array_to_xml_string() – Render an associative array as an XML string. This is needed because
SimpleXMLElement only handles valid XML, but we sometimes want to
pass around (possibly invalid) fragments. Note that ‘null’ values make
a tag Telf-closing; this is only sometimes correct (depending on the
version of HTML/XML); see the list of ‘void tags’. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: modules/sitemaps/sitemap-buffer.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: B,M,P,S

      Related

      Published: 27 November 2019 | Last updated: 10 December 2020

      Primary Sidebar

      Information

      File name: modules/sitemaps/sitemap-buffer.php
      Plugin ref: Jetpack
      Version: 9.2
      Deprecated?: No
      API Letters: B,M,P,S

      modules/sitemaps

      Footer

      Jetpack a2z
      Jetpack a2z
      Jetpack a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  jetpack.wp-a2z.org
      © Copyright Jetpack a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites