PHP Class SimpleOptionsLogger

Inheritance: extends SimpleLogger
Datei anzeigen Open project: bonny/wordpress-simple-history

Public Properties

Property Type Description
$slug

Public Methods

Method Description
add_context_for_option_default_category ( $context, $old_value, $new_value, $option, $option_page ) "default_category" = Writing Settings » Default Post Category
add_context_for_option_default_email_category ( $context, $old_value, $new_value, $option, $option_page )
add_context_for_option_page_for_posts ( $context, $old_value, $new_value, $option, $option_page )
add_context_for_option_page_on_front ( $context, $old_value, $new_value, $option, $option_page ) Page on front = "Front page displays" -> Your latest posts / A static page value 0 = Your latest post value int n = A static page
getInfo ( ) : array Get array with information about this logger
getLogRowDetailsOutput ( $row ) Get detailed output
getLogRowPlainTextOutput ( $row ) Give some options better plain text output
get_details_output_for_option_default_category ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row ) : string Add detailed putput for default_category
get_details_output_for_option_default_email_category ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row )
get_details_output_for_option_page_for_posts ( $context, $old_value, $new_value, $option, $option_page )
get_details_output_for_option_page_on_front ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row ) : string Add detailed putput for page_on_front
loaded ( )
on_updated_option ( $option, $old_value, $new_value )

Method Details

add_context_for_option_default_category() public method

"default_category" = Writing Settings » Default Post Category
public add_context_for_option_default_category ( $context, $old_value, $new_value, $option, $option_page )

add_context_for_option_default_email_category() public method

public add_context_for_option_default_email_category ( $context, $old_value, $new_value, $option, $option_page )

add_context_for_option_page_for_posts() public method

public add_context_for_option_page_for_posts ( $context, $old_value, $new_value, $option, $option_page )

add_context_for_option_page_on_front() public method

Page on front = "Front page displays" -> Your latest posts / A static page value 0 = Your latest post value int n = A static page
public add_context_for_option_page_on_front ( $context, $old_value, $new_value, $option, $option_page )

getInfo() public method

Get array with information about this logger
public getInfo ( ) : array
return array

getLogRowDetailsOutput() public method

Get detailed output
public getLogRowDetailsOutput ( $row )

getLogRowPlainTextOutput() public method

Not doing anything at the moment, because it was really difficaly to give them meaningful text values
public getLogRowPlainTextOutput ( $row )

get_details_output_for_option_default_category() public method

Add detailed putput for default_category
public get_details_output_for_option_default_category ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row ) : string
return string output

get_details_output_for_option_default_email_category() public method

public get_details_output_for_option_default_email_category ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row )

get_details_output_for_option_page_for_posts() public method

public get_details_output_for_option_page_for_posts ( $context, $old_value, $new_value, $option, $option_page )

get_details_output_for_option_page_on_front() public method

Add detailed putput for page_on_front
public get_details_output_for_option_page_on_front ( $context, $old_value, $new_value, $option, $option_page, $tmpl_row ) : string
return string output

loaded() public method

public loaded ( )

on_updated_option() public method

public on_updated_option ( $option, $old_value, $new_value )

Property Details

$slug public_oe property

public $slug