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’. */