Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
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. |
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. |
return | static | Settings page object. |