PHP Class SimpleHistoryFilterDropin

显示文件 Open project: bonny/wordpress-simple-history

Public Methods

Method Description
__construct ( $sh )
add_gravatar_to_user_array ( &$val, $index = null ) function
ajax_simple_history_filters_search_user ( ) Return users
enqueue_admin_scripts ( )
get_data_for_user ( integer $userID ) : array Return format used for select2 for a single user id
gui_page_filters ( )
touch_time ( $from_or_to, integer | boolean $edit = 1 ) Print out HTML form date elements for editing post or comment publish date.

Method Details

__construct() public method

public __construct ( $sh )

add_gravatar_to_user_array() public method

function
public add_gravatar_to_user_array ( &$val, $index = null )

ajax_simple_history_filters_search_user() public method

Return users

enqueue_admin_scripts() public method

get_data_for_user() public method

Return format used for select2 for a single user id
public get_data_for_user ( integer $userID ) : array
$userID integer
return array Array with each user as an object

gui_page_filters() public method

public gui_page_filters ( )

touch_time() public method

Based on the wordpress function touch_time();
public touch_time ( $from_or_to, integer | boolean $edit = 1 )
$edit integer | boolean Accepts 1|true for editing the date, 0|false for adding the date.