rtForm::display_textbox PHP Method

display_textbox() public method

public display_textbox ( $args = '' )
        public function display_textbox($args = '')
        {
            echo $this->get_textbox($args);
        }

Usage Example

コード例 #1
0
ファイル: RTMediaFormHandler.php プロジェクト: rtCamp/rtMedia
 /**
  * Show rtmedia textbox in admin options.
  *
  * @access static
  *
  * @param  array $args
  *
  * @return void
  */
 public static function textbox($args)
 {
     global $rtmedia;
     $options = $rtmedia->options;
     $defaults = array('key' => '', 'desc' => '');
     $args = wp_parse_args($args, $defaults);
     extract($args);
     if (!isset($value)) {
         trigger_error(esc_html__('Please provide a "value" in the argument.', 'buddypress-media'));
         return;
     }
     if (!empty($key)) {
         $args['name'] = 'rtmedia-options[' . $key . ']';
     }
     $args['value'] = $value;
     $numObj = new rtForm();
     $numObj->display_textbox($args);
 }