PHP Class PodsUI, pods

Afficher le fichier Open project: pods-framework/pods Class Usage Examples

Méthodes publiques

Свойство Type Description
$action string
$action_after array
$action_bulk string
$action_links array
$actions_bulk array
$actions_custom array
$actions_disabled array
$actions_hidden array
$allowed used in var_update
$bulk array
$css boolean
$data boolean | array
$data_full boolean | array
$data_keys array
$default_none boolean
$do boolean
$excluded array
$export array
$extra array
$fields array
$filters array
$filters_enhanced boolean
$header boolean
$heading boolean
$help array
$icon boolean
$id integer
$item boolean
$items boolean
$label boolean
$limit integer
$num string
$orderby boolean
$orderby_dir string
$page integer
$pagination boolean
$pagination_total boolean
$params array
$pod array | boolean | mixed | null | Pods
$reorder array
$restrict array
$row array
$save boolean
$screen_options array
$search boolean
$search_across boolean
$search_across_picks boolean
$searchable boolean
$session array
$sortable boolean
$sql array
$style string
$total integer
$total_found integer
$user array
$view string
$views array
$where array
$wpcss boolean
$x base

Méthodes publiques

Méthode Description
__construct ( mixed $options, boolean $deprecated = false ) : PodsUI Generate UI for Data Management
add ( ) : mixed
callback ( ) : boolean | mixed Check for a custom action callback and run it
callback_action ( ) : boolean | mixed Check for a custom action callback and run it (deprecated reverse arg order)
callback_bulk ( ) : boolean | mixed Check for a bulk action callback and run it
delete ( null $id = null ) : boolean | mixed
delete_bulk ( ) : boolean | mixed
deprecated_filters ( )
do_magic_tags ( $tag ) : string
do_template ( $code, boolean | array $row = false ) : mixed
edit ( boolean $duplicate = false ) : mixed
error ( $msg ) : boolean
exclusion ( ) : array
export ( )
filters ( )
filters_popup ( )
form ( boolean $create = false, boolean $duplicate = false ) : boolean | mixed
get_data ( $params = null ) : boolean
get_field ( $field ) : array | boolean | mixed | null
get_params ( null | array $params = null, null | string $action = null ) Get find() params based on current UI action
get_row ( &$counter, $method = null ) : array
go ( ) : mixed
hidden_vars ( boolean | array $exclude = false, boolean | array $array = false )
limit ( boolean $options = false ) : mixed
manage ( boolean $reorder = false ) : mixed | null
message ( $msg, boolean $error = false )
pagination ( boolean $header = false ) : mixed
reorder ( ) Reorder data
restricted ( $action = 'edit', $row = null )
save ( boolean $insert = false ) : mixed
screen_meta ( )
setup ( $options ) : array | boolean | mixed | null | PodsArray
setup_deprecated ( $deprecated_options ) : array
setup_fields ( null $fields = null, string $which = 'fields' ) : array | boolean | mixed | null
sort_data ( ) Sort out data alphabetically by a key
table ( boolean $reorder = false ) : boolean | mixed
view ( ) : boolean | mixed

Private Methods

Méthode Description
do_hook ( ) : array | boolean | mixed | null

Method Details

__construct() public méthode

Generate UI for Data Management
Since: 2.0
public __construct ( mixed $options, boolean $deprecated = false ) : PodsUI
$options mixed Object, Array, or String containing Pod or Options to be used
$deprecated boolean Set to true to support old options array from Pods UI plugin
Résultat PodsUI

add() public méthode

public add ( ) : mixed
Résultat mixed

callback() public méthode

Check for a custom action callback and run it
public callback ( ) : boolean | mixed
Résultat boolean | mixed

callback_action() public méthode

Check for a custom action callback and run it (deprecated reverse arg order)
public callback_action ( ) : boolean | mixed
Résultat boolean | mixed

callback_bulk() public méthode

Check for a bulk action callback and run it
public callback_bulk ( ) : boolean | mixed
Résultat boolean | mixed Callback result

delete() public méthode

public delete ( null $id = null ) : boolean | mixed
$id null
Résultat boolean | mixed

delete_bulk() public méthode

public delete_bulk ( ) : boolean | mixed
Résultat boolean | mixed

deprecated_filters() public méthode

public deprecated_filters ( )

do_magic_tags() public méthode

public do_magic_tags ( $tag ) : string
$tag
Résultat string

do_template() public méthode

public do_template ( $code, boolean | array $row = false ) : mixed
$code
$row boolean | array
Résultat mixed

edit() public méthode

public edit ( boolean $duplicate = false ) : mixed
$duplicate boolean
Résultat mixed

error() public méthode

public error ( $msg ) : boolean
$msg
Résultat boolean

exclusion() public méthode

public exclusion ( ) : array
Résultat array

export() public méthode

public export ( )

filters() public méthode

public filters ( )

filters_popup() public méthode

public filters_popup ( )

form() public méthode

public form ( boolean $create = false, boolean $duplicate = false ) : boolean | mixed
$create boolean
$duplicate boolean
Résultat boolean | mixed

get_data() public méthode

public get_data ( $params = null ) : boolean
Résultat boolean

get_field() public méthode

public get_field ( $field ) : array | boolean | mixed | null
$field
Résultat array | boolean | mixed | null

get_params() public méthode

Get find() params based on current UI action
public get_params ( null | array $params = null, null | string $action = null )
$params null | array
$action null | string

get_row() public méthode

public get_row ( &$counter, $method = null ) : array
Résultat array

go() public méthode

public go ( ) : mixed
Résultat mixed

hidden_vars() public méthode

public hidden_vars ( boolean | array $exclude = false, boolean | array $array = false )
$exclude boolean | array
$array boolean | array

limit() public méthode

public limit ( boolean $options = false ) : mixed
$options boolean
Résultat mixed

manage() public méthode

public manage ( boolean $reorder = false ) : mixed | null
$reorder boolean
Résultat mixed | null

message() public méthode

public message ( $msg, boolean $error = false )
$msg
$error boolean

pagination() public méthode

public pagination ( boolean $header = false ) : mixed
$header boolean
Résultat mixed

reorder() public méthode

Reorder data
public reorder ( )

restricted() public méthode

public restricted ( $action = 'edit', $row = null )

save() public méthode

public save ( boolean $insert = false ) : mixed
$insert boolean
Résultat mixed

screen_meta() public méthode

public screen_meta ( )

setup() public méthode

public setup ( $options ) : array | boolean | mixed | null | PodsArray
$options
Résultat array | boolean | mixed | null | PodsArray

setup_deprecated() public méthode

public setup_deprecated ( $deprecated_options ) : array
$deprecated_options
Résultat array

setup_fields() public méthode

public setup_fields ( null $fields = null, string $which = 'fields' ) : array | boolean | mixed | null
$fields null
$which string
Résultat array | boolean | mixed | null

sort_data() public méthode

Sort out data alphabetically by a key
public sort_data ( )

table() public méthode

public table ( boolean $reorder = false ) : boolean | mixed
$reorder boolean
Résultat boolean | mixed

view() public méthode

Since: 2.3.10
public view ( ) : boolean | mixed
Résultat boolean | mixed

Property Details

$action public_oe property

public string $action
Résultat string

$action_after public_oe property

public array $action_after
Résultat array

$action_bulk public_oe property

public string $action_bulk
Résultat string

$actions_bulk public_oe property

public array $actions_bulk
Résultat array

$actions_custom public_oe property

public array $actions_custom
Résultat array

$actions_disabled public_oe property

public array $actions_disabled
Résultat array

$actions_hidden public_oe property

public array $actions_hidden
Résultat array

$allowed static_oe public_oe property

used in var_update
static public $allowed

$bulk public_oe property

public array $bulk
Résultat array

$css public_oe property

public bool $css
Résultat boolean

$data public_oe property

public bool|array $data
Résultat boolean | array

$data_full public_oe property

public bool|array $data_full
Résultat boolean | array

$data_keys public_oe property

public array $data_keys
Résultat array

$default_none public_oe property

public bool $default_none
Résultat boolean

$do public_oe property

public bool $do
Résultat boolean

$excluded static_oe public_oe property

static public array $excluded
Résultat array

$export public_oe property

public array $export
Résultat array

$extra public_oe property

public array $extra
Résultat array

$fields public_oe property

public array $fields
Résultat array

$filters public_oe property

public array $filters
Résultat array

$filters_enhanced public_oe property

public bool $filters_enhanced
Résultat boolean

$header public_oe property

public bool $header
Résultat boolean

$heading public_oe property

public bool $heading
Résultat boolean

$help public_oe property

public array $help
Résultat array

$icon public_oe property

public bool $icon
Résultat boolean

$id public_oe property

public int $id
Résultat integer

$item public_oe property

public bool $item
Résultat boolean

$items public_oe property

public bool $items
Résultat boolean

$label public_oe property

public bool $label
Résultat boolean

$limit public_oe property

public int $limit
Résultat integer

$num public_oe property

public string $num
Résultat string

$orderby public_oe property

public bool $orderby
Résultat boolean

$orderby_dir public_oe property

public string $orderby_dir
Résultat string

$page public_oe property

public int $page
Résultat integer

$pagination public_oe property

public bool $pagination
Résultat boolean

$pagination_total public_oe property

public bool $pagination_total
Résultat boolean

$params public_oe property

public array $params
Résultat array

$pod public_oe property

public array|bool|mixed|null|Pods $pod
Résultat array | boolean | mixed | null | Pods

$reorder public_oe property

public array $reorder
Résultat array

$restrict public_oe property

public array $restrict
Résultat array

$row public_oe property

public array $row
Résultat array

$save public_oe property

public bool $save
Résultat boolean

$screen_options public_oe property

public array $screen_options
Résultat array

$search_across public_oe property

public bool $search_across
Résultat boolean

$search_across_picks public_oe property

public bool $search_across_picks
Résultat boolean

$searchable public_oe property

public bool $searchable
Résultat boolean

$session public_oe property

public array $session
Résultat array

$sortable public_oe property

public bool $sortable
Résultat boolean

$sql public_oe property

public array $sql
Résultat array

$style public_oe property

public string $style
Résultat string

$total public_oe property

public int $total
Résultat integer

$total_found public_oe property

public int $total_found
Résultat integer

$user public_oe property

public array $user
Résultat array

$view public_oe property

public string $view
Résultat string

$views public_oe property

public array $views
Résultat array

$where public_oe property

public array $where
Résultat array

$wpcss public_oe property

public bool $wpcss
Résultat boolean

$x public_oe property

base
public $x