PHP Class rtForm, rtMedia

Show file Open project: rtCamp/rtMedia Class Usage Examples

Public Methods

Method Description
display_number ( $args = '' )
display_radio ( $args = '' )
display_select ( $args = '' )
display_switch ( $args = '' )
display_textarea ( $args = '' )
display_textbox ( $args = '' )
get_checkbox ( string/array $attributes = '' ) : string Get rtmedia html input type checkbox in admin options.
get_date ( array $attributes ) : string Get rtmedia html date field in admin options.
get_hidden ( string/array $attributes = '' ) : string Get rtmedia html hidden field in admin options.
get_number ( string/array $attributes = '' ) : string Get rtmedia html number field in admin options.
get_radio ( string/array $attributes = '' ) : string Get rtmedia html input type radio in admin options.
get_select ( string/array $attributes = '' ) : string Get rtmedia html input type select in admin options.
get_switch ( string/array $attributes = '' ) : string Get rtmedia html input type checkbox (get_switch) in admin options.
get_switch_square ( string/array $attributes = '' ) : string Get rtmedia html input type checkbox (get_switch_square) in admin options.
get_textarea ( string/array $attributes = '' ) : string Get rtmedia html textarea in admin options.
get_textbox ( string/array $attributes = '' ) : string Get rtmedia html textbox in admin options.

Protected Methods

Method Description
enclose_label ( $element, $html, $label, boolean $class = false ) : string Enclose html label.
generate_checkbox ( array $attributes ) : string Generate rtmedia html input type checkbox in admin options.
generate_date ( $attributes ) : string Generate rtmedia html date field in admin options.
generate_hidden ( $attributes ) : string Generate rtmedia html hidden field in admin options.
generate_number ( $attributes ) : string Generate rtmedia html number field in admin options
generate_radio ( array $attributes ) : string Generate rtmedia html input type radio in admin options.
generate_select ( $attributes ) : string Generate rtmedia html input type select in admin options.
generate_textarea ( $attributes ) : string Generate rtmedia html textarea in admin options.
generate_textbox ( $attributes ) : string Generate rtmedia html textbox in admin options.

Private Methods

Method Description
container_enclosed_elements ( string $element, array $attrib, array $rtForm_options ) : string container enclosed elements in admin options.
embedd_class ( string $element, array $class = null ) : string Embedd html class to html output.
embedd_misc_attributes ( $misc ) : string | void Embedd html misc attributes in admin options.
generate_element_desc ( mixed $attributes ) : string Generate rtmedia html element description in admin options.
generate_element_id ( string $element, string $id = null ) : string Generate rtmedia html element id attribute in admin options.
generate_element_name ( string $element, string $multiple, string $name ) : string Generate rtmedia html name attribute in admin options.
generate_element_value ( string $element, mixed $attributes ) : string Generate rtmedia html value attribute in admin options.
get_default_class ( string $element ) Get default html class.
get_default_id ( string $element ) Get default html id.
parse_multiple_options ( $element, $attributes ) : array Parse multiple options in admin options.
processAttributes ( string $element, mixed $attributes, boolean $container = false ) : string Process html attributes in admin options.
update_default_id ( string $element ) Update default html id.

Method Details

display_number() public method

public display_number ( $args = '' )

display_radio() public method

public display_radio ( $args = '' )

display_select() public method

public display_select ( $args = '' )

display_switch() public method

public display_switch ( $args = '' )

display_textarea() public method

public display_textarea ( $args = '' )

display_textbox() public method

public display_textbox ( $args = '' )

enclose_label() protected method

Enclose html label.
protected enclose_label ( $element, $html, $label, boolean $class = false ) : string
$element
$html
$label
$class boolean
return string

generate_checkbox() protected method

Generate rtmedia html input type checkbox in admin options.
protected generate_checkbox ( array $attributes ) : string
$attributes array
return string $container

generate_date() protected method

Generate rtmedia html date field in admin options.
protected generate_date ( $attributes ) : string
$attributes
return string

generate_hidden() protected method

Generate rtmedia html hidden field in admin options.
protected generate_hidden ( $attributes ) : string
$attributes
return string

generate_number() protected method

Generate rtmedia html number field in admin options
protected generate_number ( $attributes ) : string
$attributes
return string

generate_radio() protected method

Generate rtmedia html input type radio in admin options.
protected generate_radio ( array $attributes ) : string
$attributes array
return string $container

generate_select() protected method

Generate rtmedia html input type select in admin options.
protected generate_select ( $attributes ) : string
$attributes
return string

generate_textarea() protected method

Generate rtmedia html textarea in admin options.
protected generate_textarea ( $attributes ) : string
$attributes
return string

generate_textbox() protected method

Generate rtmedia html textbox in admin options.
protected generate_textbox ( $attributes ) : string
$attributes
return string

get_checkbox() public method

Get rtmedia html input type checkbox in admin options.
public get_checkbox ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_date() public method

Get rtmedia html date field in admin options.
public get_date ( array $attributes ) : string
$attributes array
return string

get_hidden() public method

Get rtmedia html hidden field in admin options.
public get_hidden ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_number() public method

Get rtmedia html number field in admin options.
public get_number ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_radio() public method

Get rtmedia html input type radio in admin options.
public get_radio ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_select() public method

Get rtmedia html input type select in admin options.
public get_select ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_switch() public method

Get rtmedia html input type checkbox (get_switch) in admin options.
public get_switch ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_switch_square() public method

Get rtmedia html input type checkbox (get_switch_square) in admin options.
public get_switch_square ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_textarea() public method

Get rtmedia html textarea in admin options.
public get_textarea ( string/array $attributes = '' ) : string
$attributes string/array
return string

get_textbox() public method

Get rtmedia html textbox in admin options.
public get_textbox ( string/array $attributes = '' ) : string
$attributes string/array
return string