GIF89A;
Server : Microsoft-IIS/10.0 System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586 User : fatorc ( 0) PHP Version : 5.3.28 Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate Directory : e:/home/fatorc/Web/wp-content/plugins/types/application/controllers/page/ |
Upload File : |
<?php /** * Abstract admin page controller. * * All page controllers must inherit from this one. * * @since 2.0 */ abstract class Types_Page_Abstract { /** @var bool Whether to disable heartbeat. Default is true (disable). */ protected $disable_heartbeat = true; /** * Prepare the page controller for displaying a page. * * This should be the first time where any kind of preparation happens (it shouldn't happen during * instantiating the class). * * By default, this disables the WordPress Heartbeat API in order to save resources and speed up AJAX calls. * * @since 2.0 */ public function prepare() { if ( $this->disable_heartbeat ) { wp_deregister_script( 'heartbeat' ); wp_register_script( 'heartbeat', false ); } } /** * Title to be displayed on the menu as well in the page title. * * @return string * @since 2.0 */ abstract public function get_title(); /** * Callback for the page rendering action. * * @return callable * @since 2.0 */ abstract public function get_render_callback(); /** * Callback for the page load action (load-{$hook}). * * @return null|callable Optional. * @since 2.0 */ public function get_load_callback() { return null; } /** * Page name slug. * * Should be taken directly from constants in Types_Admin_Menu. * * @return string * @since 2.0 */ abstract public function get_page_name(); /** * User capability required to display the submenu item and access the page. * * @return string * @since 2.0 */ abstract public function get_required_capability(); }