PHP Class RTMediaFormHandler, rtMedia

Author: udit
Mostra file Open project: rtCamp/rtMedia Class Usage Examples

Public Methods

Method Description
buddypress_content ( ) : void Define buddypress content.
buddypress_render_options ( array $options ) : array Render buddypress options.
checkbox ( array $args, boolean $echo = true ) : string Show rtmedia checkbox in admin options.
custom_css_content ( ) : void Define custom css content.
custom_css_render_options ( array $options ) : array Render custom css options.
dimensions ( $args ) : void Show rtmedia dimensions in admin options.
display_content ( ) : void display content.
display_render_options ( array $options ) : array display render options.
extract_settings ( string $section_name, array $options ) : array extract settings.
general_content ( ) : void Define general_content
get_type_details ( array $allowed_types, string $key ) : array Get type details
number ( array $args ) : void Show rtmedia number in admin options.
privacy_content ( ) : void Render privacy content.
privacy_render_options ( array $options ) : array Render privacy options.
radio ( array $args ) : void Show rtmedia radio in admin options.
render_general_content ( array $options ) : array render general content.
render_option_content ( $option ) * render options
render_option_group ( $group ) * render option group title inside single tab
render_tab_content ( $options, $groups = [], $default_group ) * render each tab content
rtForm_do_settings_fields ( string $page, string $section ) : void Define rtForm do_settings_fields.
rtForm_settings_tabs_content ( string $page, array $sub_tabs ) : void Define rtForm settings tabs content.
selectBox ( $args )
sizes_content ( ) : void Define sizes_content.
sizes_render_options ( array $options ) : array Define sizes_render_options.
textarea ( array $args, boolean $echo = true ) : string Show rtmedia textarea in admin options.
textbox ( array $args ) : void Show rtmedia textbox in admin options.
types_content ( ) : void Define types_content.
types_render_options ( array $options ) : array Define types_render_options.

Method Details

buddypress_content() public static method

Define buddypress content.
public static buddypress_content ( ) : void
return void

buddypress_render_options() static public method

Render buddypress options.
static public buddypress_render_options ( array $options ) : array
$options array
return array $render

checkbox() public static method

Show rtmedia checkbox in admin options.
public static checkbox ( array $args, boolean $echo = true ) : string
$args array
$echo boolean
return string $chkObj->get_switch( $args )

custom_css_content() public static method

Define custom css content.
public static custom_css_content ( ) : void
return void

custom_css_render_options() static public method

Render custom css options.
static public custom_css_render_options ( array $options ) : array
$options array
return array $render

dimensions() public static method

Show rtmedia dimensions in admin options.
public static dimensions ( $args ) : void
return void

display_content() public static method

display content.
public static display_content ( ) : void
return void

display_render_options() static public method

display render options.
static public display_render_options ( array $options ) : array
$options array
return array $render

extract_settings() static public method

extract settings.
static public extract_settings ( string $section_name, array $options ) : array
$section_name string
$options array
return array $section

general_content() static public method

Define general_content
static public general_content ( ) : void
return void

get_type_details() static public method

Get type details
static public get_type_details ( array $allowed_types, string $key ) : array
$allowed_types array
$key string
return array $data

number() public static method

Show rtmedia number in admin options.
public static number ( array $args ) : void
$args array
return void

privacy_content() public static method

Render privacy content.
public static privacy_content ( ) : void
return void

privacy_render_options() static public method

Render privacy options.
static public privacy_render_options ( array $options ) : array
$options array
return array $render

radio() public static method

Show rtmedia radio in admin options.
public static radio ( array $args ) : void
$args array
return void

render_general_content() static public method

render general content.
static public render_general_content ( array $options ) : array
$options array
return array $render

render_option_content() public static method

* render options
public static render_option_content ( $option )
$option

render_option_group() public static method

* render option group title inside single tab
public static render_option_group ( $group )
$group

render_tab_content() public static method

* render each tab content
public static render_tab_content ( $options, $groups = [], $default_group )
$groups
$default_group

rtForm_do_settings_fields() public static method

Define rtForm do_settings_fields.
public static rtForm_do_settings_fields ( string $page, string $section ) : void
$page string
$section string
return void

rtForm_settings_tabs_content() public static method

Define rtForm settings tabs content.
public static rtForm_settings_tabs_content ( string $page, array $sub_tabs ) : void
$page string
$sub_tabs array
return void

selectBox() public static method

public static selectBox ( $args )

sizes_content() public static method

Define sizes_content.
public static sizes_content ( ) : void
return void

sizes_render_options() static public method

Define sizes_render_options.
static public sizes_render_options ( array $options ) : array
$options array
return array $render

textarea() public static method

Show rtmedia textarea in admin options.
public static textarea ( array $args, boolean $echo = true ) : string
$args array
$echo boolean
return string $chkObj->get_textarea( $args )

textbox() public static method

Show rtmedia textbox in admin options.
public static textbox ( array $args ) : void
$args array
return void

types_content() public static method

Define types_content.
public static types_content ( ) : void
return void

types_render_options() static public method

Define types_render_options.
static public types_render_options ( array $options ) : array
$options array
return array $render