PHP 클래스 PodsAdmin, pods

파일 보기 프로젝트 열기: pods-framework/pods 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$instance PodsAdmin

공개 메소드들

메소드 설명
__construct ( ) : PodsAdmin Setup and Handle Admin functionality
add_rest_field_tab ( array $tabs ) : array Add REST field tab
add_rest_fields_to_field_editor ( array $options, array $pod ) : array Add a REST API section to advanced tab of field editor.
add_rest_settings_tab ( array $tabs, array $pod ) : array Add a rest api tab.
add_rest_settings_tab_fields ( array $options, array $pod ) : array Populate REST API tab.
admin_advanced ( ) Get advanced administration view.
admin_ajax ( ) Handle ajax calls for the administration
admin_capabilities ( $capabilities ) : array Add pods specific capabilities.
admin_components ( ) Get components administration UI
admin_components_toggle ( PodsUI $ui ) : boolean Toggle a component on or off
admin_content ( ) Create PodsUI content for the administration pages
admin_content_settings ( ) Create PodsUI content for the settings administration pages
admin_head ( ) Attach requirements to admin header
admin_help ( ) Get the admin help page
admin_init ( ) Init the admin area
admin_menu ( ) Build the admin menus
admin_settings ( ) Get settings administration view
admin_setup ( ) Handle main Pods Setup area for managing Pods and Fields
admin_setup_add ( $obj ) Get the add page of an object
admin_setup_delete ( $id, $obj ) : mixed Delete a pod
admin_setup_duplicate ( $obj ) : mixed Duplicate a pod
admin_setup_duplicate_restrict ( boolean $restricted, array $restrict, string $action, array $row, PodsUI $obj ) : boolean Restrict Duplicate action to custom types, not extended
admin_setup_edit ( $duplicate, $obj ) Get the edit page of an object
admin_setup_edit_field_options ( $pod ) : array Get list of Pod field options
admin_setup_edit_field_tabs ( $pod ) : array Get list of Pod field option tabs
admin_setup_edit_options ( $pod ) : array Get list of Pod options
admin_setup_edit_tabs ( $pod ) : array Get list of Pod option tabs
admin_setup_reset ( $obj, $id ) : mixed Reset a pod
admin_setup_reset_restrict ( boolean $restricted, array $restrict, string $action, array $row, PodsUI $obj ) Restrict Reset action from users and media
admin_upgrade ( ) Get the admin upgrade page
configuration ( $pod = null, boolean $full_field_info = false ) : array Profiles the Pods configuration
init ( ) : PodsAdmin Singleton handling for a basic pods_admin() request
mce_popup ( ) Output Pods shortcode popup window
media_button ( $context = null ) : string Add media button for Pods shortcode
parent_file ( $parent_file ) : mixed | string Set the correct parent_file to highlight the correct top level menu
register_media_assets ( ) Enqueue assets for Media Library Popup
upgrade_notice ( )

보호된 메소드들

메소드 설명
rest_admin ( ) Build UI for extending REST API, if makes sense to do so.
restable_pod ( array $pod ) : boolean Check if Pod type could extend core REST API response

메소드 상세

__construct() 공개 메소드

Setup and Handle Admin functionality
부터: 2.0
public __construct ( ) : PodsAdmin
리턴 PodsAdmin

add_rest_field_tab() 공개 메소드

Add REST field tab
부터: 2.5.6
public add_rest_field_tab ( array $tabs ) : array
$tabs array
리턴 array

add_rest_fields_to_field_editor() 공개 메소드

Add a REST API section to advanced tab of field editor.
부터: 2.5.6
public add_rest_fields_to_field_editor ( array $options, array $pod ) : array
$options array
$pod array
리턴 array

add_rest_settings_tab() 공개 메소드

Add a rest api tab.
부터: 2.6.0
public add_rest_settings_tab ( array $tabs, array $pod ) : array
$tabs array
$pod array
리턴 array

add_rest_settings_tab_fields() 공개 메소드

Populate REST API tab.
부터: 0.1.0
public add_rest_settings_tab_fields ( array $options, array $pod ) : array
$options array
$pod array
리턴 array

admin_advanced() 공개 메소드

Get advanced administration view.
public admin_advanced ( )

admin_ajax() 공개 메소드

Handle ajax calls for the administration
public admin_ajax ( )

admin_capabilities() 공개 메소드

Add pods specific capabilities.
public admin_capabilities ( $capabilities ) : array
$capabilities List of extra capabilities to add
리턴 array

admin_components() 공개 메소드

Get components administration UI
public admin_components ( )

admin_components_toggle() 공개 메소드

Toggle a component on or off
public admin_components_toggle ( PodsUI $ui ) : boolean
$ui PodsUI
리턴 boolean

admin_content() 공개 메소드

Create PodsUI content for the administration pages
public admin_content ( )

admin_content_settings() 공개 메소드

Create PodsUI content for the settings administration pages

admin_head() 공개 메소드

Attach requirements to admin header
부터: 2.0
public admin_head ( )

admin_help() 공개 메소드

Get the admin help page
public admin_help ( )

admin_init() 공개 메소드

Init the admin area
부터: 2.0
public admin_init ( )

admin_menu() 공개 메소드

Build the admin menus
부터: 2.0
public admin_menu ( )

admin_settings() 공개 메소드

Get settings administration view
public admin_settings ( )

admin_setup() 공개 메소드

Handle main Pods Setup area for managing Pods and Fields
public admin_setup ( )

admin_setup_add() 공개 메소드

Get the add page of an object
public admin_setup_add ( $obj )
$obj

admin_setup_delete() 공개 메소드

Delete a pod
public admin_setup_delete ( $id, $obj ) : mixed
$id
$obj
리턴 mixed

admin_setup_duplicate() 공개 메소드

Duplicate a pod
public admin_setup_duplicate ( $obj ) : mixed
$obj
리턴 mixed

admin_setup_duplicate_restrict() 공개 메소드

Restrict Duplicate action to custom types, not extended
부터: 2.3.10
public admin_setup_duplicate_restrict ( boolean $restricted, array $restrict, string $action, array $row, PodsUI $obj ) : boolean
$restricted boolean
$restrict array
$action string
$row array
$obj PodsUI
리턴 boolean

admin_setup_edit() 공개 메소드

Get the edit page of an object
public admin_setup_edit ( $duplicate, $obj )
$duplicate
$obj

admin_setup_edit_field_options() 공개 메소드

Get list of Pod field options
public admin_setup_edit_field_options ( $pod ) : array
리턴 array

admin_setup_edit_field_tabs() 공개 메소드

Get list of Pod field option tabs
public admin_setup_edit_field_tabs ( $pod ) : array
리턴 array

admin_setup_edit_options() 공개 메소드

Get list of Pod options
public admin_setup_edit_options ( $pod ) : array
리턴 array

admin_setup_edit_tabs() 공개 메소드

Get list of Pod option tabs
public admin_setup_edit_tabs ( $pod ) : array
리턴 array

admin_setup_reset() 공개 메소드

Reset a pod
public admin_setup_reset ( $obj, $id ) : mixed
$obj
리턴 mixed

admin_setup_reset_restrict() 공개 메소드

Restrict Reset action from users and media
부터: 2.3.10
public admin_setup_reset_restrict ( boolean $restricted, array $restrict, string $action, array $row, PodsUI $obj )
$restricted boolean
$restrict array
$action string
$row array
$obj PodsUI

admin_upgrade() 공개 메소드

Get the admin upgrade page
public admin_upgrade ( )

configuration() 공개 메소드

Profiles the Pods configuration
부터: 3.0.0
public configuration ( $pod = null, boolean $full_field_info = false ) : array
$full_field_info boolean Optional. If true all info about each field is returned. If false, which is the default only name and type, will be returned.
리턴 array

init() 공개 정적인 메소드

Singleton handling for a basic pods_admin() request
부터: 2.3.5
public static init ( ) : PodsAdmin
리턴 PodsAdmin

mce_popup() 공개 메소드

Output Pods shortcode popup window
public mce_popup ( )

media_button() 공개 메소드

Add media button for Pods shortcode
public media_button ( $context = null ) : string
$context
리턴 string

parent_file() 공개 메소드

Set the correct parent_file to highlight the correct top level menu
public parent_file ( $parent_file ) : mixed | string
$parent_file The parent file
리턴 mixed | string

register_media_assets() 공개 메소드

Enqueue assets for Media Library Popup

rest_admin() 보호된 메소드

Build UI for extending REST API, if makes sense to do so.
부터: 2.6.0
protected rest_admin ( )

restable_pod() 보호된 메소드

Check if Pod type could extend core REST API response
부터: 2.5.6
protected restable_pod ( array $pod ) : boolean
$pod array
리턴 boolean

upgrade_notice() 공개 메소드

public upgrade_notice ( )

프로퍼티 상세

$instance 정적으로 공개적으로 프로퍼티

static public PodsAdmin $instance
리턴 PodsAdmin