PHP 클래스 Inpsyde\MultilingualPress\Common\Admin\SettingsPage

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $admin, string $title, string $menu_title, string $capability, string $slug, Inpsyde\MultilingualPress\Common\Admin\SettingsPageView $view, string $icon = '', integer | null $position = null ) Constructor. Sets up the properties.
hookname ( ) : string Returns the hookname.
register ( ) : boolean Registers the settings page.
url ( ) : string Returns the full URL.
with_parent ( integer $admin, string $parent, string $title, string $menu_title, string $capability, string $slug, Inpsyde\MultilingualPress\Common\Admin\SettingsPageView $view ) : static Returns a new settings page object, instantiated according to the given arguments.

비공개 메소드들

메소드 설명
get_action ( ) : string. Returns the action for registering the page.
get_callback ( ) : callable Returns the callback for adding the page to the admin menu.
get_callback_args ( ) : array Returns the callback args for adding the page to the admin menu.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( integer $admin, string $title, string $menu_title, string $capability, string $slug, Inpsyde\MultilingualPress\Common\Admin\SettingsPageView $view, string $icon = '', integer | null $position = null )
$admin integer Admin type. Use the class constants.
$title string Title on the page itself.
$menu_title string Title in the admin menu.
$capability string Capability required to view the settings page.
$slug string Page slug used in the URL.
$view Inpsyde\MultilingualPress\Common\Admin\SettingsPageView View object.
$icon string Optinoal. Icon URL. Defaults to empty string.
$position integer | null Optional. Position in the admin menu. Defaults to null.

hookname() 공개 메소드

Returns the hookname.
부터: 3.0.0
public hookname ( ) : string
리턴 string The hookname.

register() 공개 메소드

Registers the settings page.
부터: 3.0.0
public register ( ) : boolean
리턴 boolean Whether or not the settings page was registered successfully.

url() 공개 메소드

Returns the full URL.
부터: 3.0.0
public url ( ) : string
리턴 string URL.

with_parent() 공개 정적인 메소드

Returns a new settings page object, instantiated according to the given arguments.
부터: 3.0.0
public static with_parent ( integer $admin, string $parent, string $title, string $menu_title, string $capability, string $slug, Inpsyde\MultilingualPress\Common\Admin\SettingsPageView $view ) : static
$admin integer Admin type. Use the class constants.
$parent string Parent page. Use the available class constants.
$title string Title on the page itself.
$menu_title string Title in the admin menu.
$capability string Capability required to view the settings page.
$slug string Page slug used in the URL.
$view Inpsyde\MultilingualPress\Common\Admin\SettingsPageView View object.
리턴 static Settings page object.