You appear to be a bot. Output may be restricted
Description
Construct a new Jetpack_Sitemap_Buffer.
Usage
Jetpack_Sitemap_Buffer::__construct( $item_limit, $byte_limit, $time );
Parameters
- $item_limit
- ( int ) required – The maximum size of the buffer in items.
- $byte_limit
- ( int ) required – The maximum size of the buffer in bytes.
- $time
- ( string ) required – The initial datetime of the buffer. Must be in 'YYYY-MM-DD hh:mm:ss' format.
Returns
void
Source
File name: jetpack/modules/sitemaps/sitemap-buffer.php
Lines:
1 to 11 of 11
public function __construct( $item_limit, $byte_limit, $time ) { $this->is_full_flag = false; $this->timestamp = $time; $this->finder = new Jetpack_Sitemap_Finder(); $this->doc = new DOMDocument( '1.0', 'UTF-8' ); $this->item_capacity = max( 1, (int) $item_limit ); $this->byte_capacity = max( 1, (int) $byte_limit ) - strlen( $this->doc->saveXML() ); }