Properties

$items

$items : array

Log items

Type

array

$limit

$limit : integer

Maximum number of items to keep

Type

integer

Methods

create_message_logger()

create_message_logger(integer  $limit) : \BWP_Sitemaps_Logger_MessageLogger

Create a message logger

Parameters

integer $limit

default to 0 for no limit

Returns

\BWP_Sitemaps_Logger_MessageLogger

create_sitemap_logger()

create_sitemap_logger(  $limit) : \BWP_Sitemaps_Logger_SitemapLogger

Create a sitemap logger

Parameters

$limit

Returns

\BWP_Sitemaps_Logger_SitemapLogger

set_limit()

set_limit(  $limit) 

Parameters

$limit

reset()

reset() 

Reset logger, remove all logged items

get_limit()

get_limit() : integer

Returns

integer

filter_items()

filter_items(\BWP_Sitemaps_Logger_LogItem  $item) : false

Filter out some items

Parameters

Returns

false

get_log_items()

get_log_items() : array<mixed,\BWP_Sitemaps_Logger_LogItem>

Returns

array<mixed,\BWP_Sitemaps_Logger_LogItem>

array of BWP_Sitemaps_Logger_LogItem

get_log_item_data()

get_log_item_data() : array

Get a simple array representation of the log items

This is intended to be stored in a persistence layer

Returns

array

is_empty()

is_empty() : boolean

Returns

boolean

__construct()

__construct()