PHP Класс Falcon_Admin, Falcon

Наследование: extends Falcon_Autohooker
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$registered_handler_settings
$wipe_handler_options boolean When the handler is changed, we can't keep the same handler-specific options saved, so this flag ensures that we wipe the data.

Открытые методы

Метод Описание
admin_page ( ) Print the content
ajax_handler_section ( ) Handle an AJAX request for the handler section
bootstrap ( ) Bootstrap the class
handle_save_on_network ( ) Handle option saving in the network admin
init ( ) Initialization
network_settings_errors ( )
register_handler_settings_fields ( $group, $section, $handler_type = null, $current = null ) Notify the handler to register handler-specific options
register_menu ( ) Add our menu item
settings_field_from ( ) Print field for the reply-to address
settings_field_replyto ( ) Print field for the reply-to address
settings_field_send_async ( ) Print field for the Send to Author checkbox
settings_field_send_to_author ( ) Print field for the Send to Author checkbox
settings_field_type ( ) Print field for the handler type
settings_section_handler ( )
settings_section_main ( ) Print description for the main settings section
validate_from_email ( string $input ) : string Validate the reply-to address
validate_handler_options ( $input ) Validate the handler-specific options via the handler's methods
validate_replyto ( string $input ) : string Validate the reply-to address
validate_send_async ( string $input ) : string Validate the Send to Author checkbox
validate_send_to_author ( string $input ) : string Validate the Send to Author checkbox
validate_type ( string $input ) : string | boolean Validate the handler type

Описание методов

admin_page() публичный статический Метод

Print the content
public static admin_page ( )

ajax_handler_section() публичный статический Метод

Handle an AJAX request for the handler section
public static ajax_handler_section ( )

bootstrap() публичный статический Метод

Ensures all necessary hooks are added
public static bootstrap ( )

handle_save_on_network() публичный статический Метод

Alas, the network admin doesn't include an options handler, so we need to use our own here isntead.
public static handle_save_on_network ( )

init() публичный статический Метод

Initialization
public static init ( )

network_settings_errors() публичный статический Метод

public static network_settings_errors ( )

register_handler_settings_fields() публичный статический Метод

Notify the handler to register handler-specific options
См. также: self::init()
public static register_handler_settings_fields ( $group, $section, $handler_type = null, $current = null )

register_menu() публичный статический Метод

Add our menu item
public static register_menu ( )

settings_field_from() публичный статический Метод

Print field for the reply-to address
См. также: self::init()
public static settings_field_from ( )

settings_field_replyto() публичный статический Метод

Print field for the reply-to address
См. также: self::init()
public static settings_field_replyto ( )

settings_field_send_async() публичный статический Метод

Print field for the Send to Author checkbox
См. также: self::init()
public static settings_field_send_async ( )

settings_field_send_to_author() публичный статический Метод

Print field for the Send to Author checkbox
См. также: self::init()
public static settings_field_send_to_author ( )

settings_field_type() публичный статический Метод

Print field for the handler type
См. также: self::init()
public static settings_field_type ( )

settings_section_handler() публичный статический Метод

public static settings_section_handler ( )

settings_section_main() публичный статический Метод

Print description for the main settings section
См. также: self::init()
public static settings_section_main ( )

validate_from_email() публичный статический Метод

Ensures that the reply-to address is a valid formattable email address
public static validate_from_email ( string $input ) : string
$input string New reply-to address
Результат string Updated reply-to address if valid, otherwise the old address

validate_handler_options() публичный статический Метод

Validate the handler-specific options via the handler's methods
См. также: self::init()
public static validate_handler_options ( $input )

validate_replyto() публичный статический Метод

Ensures that the reply-to address is a valid formattable email address
public static validate_replyto ( string $input ) : string
$input string New reply-to address
Результат string Updated reply-to address if valid, otherwise the old address

validate_send_async() публичный статический Метод

Validate the Send to Author checkbox
public static validate_send_async ( string $input ) : string
$input string
Результат string

validate_send_to_author() публичный статический Метод

Validate the Send to Author checkbox
public static validate_send_to_author ( string $input ) : string
$input string
Результат string

validate_type() публичный статический Метод

Ensures that the selected type can actually be selected
public static validate_type ( string $input ) : string | boolean
$input string Selected class name
Результат string | boolean Selected class name if valid, otherwise false

Описание свойств

$registered_handler_settings защищенное статическое свойство

protected static $registered_handler_settings

$wipe_handler_options защищенное статическое свойство

When the handler is changed, we can't keep the same handler-specific options saved, so this flag ensures that we wipe the data.
protected static bool $wipe_handler_options
Результат boolean