コード例 #1
0
 public function __construct($id, $label, $options, $field_value, $currency_pos, $currency_symbol, $page_no = 1, $is_primary = false, $extra_opts = null)
 {
     parent::__construct($id, 'Price', $label, $options, $page_no, $is_primary, $extra_opts);
     $this->pp_field_id = $field_value;
     $field_name = $this->field_type . "_" . $this->field_id . "_" . $this->pp_field_id;
     $this->set_field_name($field_name);
     $this->currency_pos = $currency_pos;
     $this->curr_symbol = $currency_symbol;
 }
 public function __construct($id, $type, $label, $options, $value, $page_no = 1, $is_primary = false, $extra_opts = null)
 {
     parent::__construct($id, $type, $label, $options, $page_no, $is_primary, $extra_opts);
     $this->field_value = $value;
 }
コード例 #3
0
 public function __construct($id, $label, $options, $page_no = 1, $is_primary = false, $extra_opts = null)
 {
     parent::__construct($id, 'File', $label, $options, $page_no, $is_primary, $extra_opts);
 }
コード例 #4
0
 public function __construct($id, $type, $label, $options, $gmaps_api_key, $page_no, $is_primary = false, $extra_opts = null)
 {
     parent::__construct($id, $type, $label, $options, $page_no, $is_primary, $extra_opts);
     $this->api_key = $gmaps_api_key;
 }
 public function __construct($id, $type, $label, $options, $value, $page_no = 1, $is_primary = false)
 {
     parent::__construct($id, $type, $label, $options, $page_no, $is_primary);
     $this->field_value = $value;
     $this->field_class = isset($options['class']) ? $options['class'] : null;
 }