PHP Class WPDKServiceAjax

Author: =undo= ([email protected])
Inheritance: extends WPDKAjax
Datei anzeigen Open project: wpxtreme/wpdk

Public Methods

Method Description
getInstance ( ) : WPDKServiceAjax Create or return a singleton instance of WPDKServiceAjax
init ( ) : WPDKServiceAjax Alias of getInstance();
wpdk_action_alert_dismiss ( ) Permanent alert dismiss by user logged in
wpdk_action_autocomplete ( ) : string This method is such wpdk_action_user_by but used for custom autocomplete.
wpdk_action_autocomplete_posts ( ) : string Return a posts list for type and status
wpdk_action_autocomplete_users ( ) Return the autocomplete for users.
wpdk_action_dismiss_wp_pointer ( ) Dismiss a WPDK pointer for an user
wpdk_action_modal_dismiss ( ) Permanent modal dismiss by user logged in.
wpdk_action_on_swipe ( ) This action will fires if 'on_swipe' data attribute is set on the swipe control.
wpdk_action_on_switch ( ) This action will fires if 'on_switch' data attribute is set on the switch ui button control.
wpdk_action_user_by ( ) : string Display the autocomplete for input tag. List all user by term.

Protected Methods

Method Description
actions ( ) : array Return the array list with allowed method. This is a Key value pairs array with value for not signin user ajax method allowed.

Method Details

actions() protected method

Return the array list with allowed method. This is a Key value pairs array with value for not signin user ajax method allowed.
protected actions ( ) : array
return array

getInstance() public static method

Create or return a singleton instance of WPDKServiceAjax
public static getInstance ( ) : WPDKServiceAjax
return WPDKServiceAjax

init() public static method

Alias of getInstance();
public static init ( ) : WPDKServiceAjax
return WPDKServiceAjax

wpdk_action_alert_dismiss() public method

Permanent alert dismiss by user logged in
Since: 1.4.21

wpdk_action_autocomplete() public method

This method is such wpdk_action_user_by but used for custom autocomplete.
Deprecation: Since 1.0.0.b4
public wpdk_action_autocomplete ( ) : string
return string JSON encode with search results

wpdk_action_autocomplete_posts() public method

Return a posts list for type and status

wpdk_action_autocomplete_users() public method

Return the autocomplete for users.
Since: 1.5.1

wpdk_action_dismiss_wp_pointer() public method

Dismiss a WPDK pointer for an user

wpdk_action_modal_dismiss() public method

Permanent modal dismiss by user logged in.
Since: 1.5.6

wpdk_action_on_swipe() public method

This action will fires if 'on_swipe' data attribute is set on the swipe control.
Deprecation: since 1.9.0
Since: 1.7.0

wpdk_action_on_switch() public method

This action will fires if 'on_switch' data attribute is set on the switch ui button control.
Since: 1.9.0

wpdk_action_user_by() public method

Display the autocomplete for input tag. List all user by term.
public wpdk_action_user_by ( ) : string
return string JSON encode with search results