public function __construct()
 {
     parent::__construct();
     $this->name = _x('Image', 'xprofile field type', 'bxcft');
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_image', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Website (HTML5 field)', 'xprofile field type', 'bxcft');
     $this->set_format('_^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?$_iuS', 'replace');
     do_action('bp_xprofile_field_type_web', $this);
 }
 public function __construct()
 {
     parent::__construct();
     #$this->name = _x( 'Hierarchy (HTML5 field)', 'xprofile field type', 'bxcft' );
     $this->name = 'Hierarchy';
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_hierarchy', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Datepicker (HTML5 field)', 'xprofile field type', 'bxcft');
     $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2}$/', 'replace');
     // "Y-m-d 00:00:00"
     do_action('bp_xprofile_field_type_datepicker', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Custom Taxonomy Selector', 'xprofile field type', 'bxcft');
     $this->supports_options = true;
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_select_custom_taxonomy', $this);
 }
 public function __construct()
 {
     parent::__construct();
     #$this->name = _x( 'Address (HTML5 field)', 'xprofile field type', 'bxcft' );
     $this->name = 'Address (korea)';
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_address', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Email (HTML5 field)', 'xprofile field type', 'bxcft');
     $this->set_format('/^[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\\.[a-zA-Z]{2,4}$/', 'replace');
     // "*****@*****.**"
     do_action('bp_xprofile_field_type_email', $this);
 }
 public function __construct()
 {
     parent::__construct();
     #$this->name = _x( 'District_Korea (HTML5 field)', 'xprofile field type', 'bxcft' );
     $this->name = 'District_Korea';
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_district_korea', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Birthdate Selector', 'xprofile field type', 'bxcft');
     $this->supports_options = true;
     $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2} 00:00:00$/', 'replace');
     // "Y-m-d 00:00:00"
     do_action('bp_xprofile_field_type_birthdate', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->name = _x('Custom Post Type Multiselector', 'xprofile field type', 'bxcft');
     $this->supports_multiple_defaults = true;
     $this->supports_options = true;
     $this->set_format('/^.+$/', 'replace');
     do_action('bp_xprofile_field_type_multiselect_custom_post_type', $this);
 }
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'bp-xprofile-member-type-field');
     $this->name = _x('Single Member Type', 'xprofile field type', 'bp-xprofile-member-type-field');
     $this->set_format('', 'replace');
     $this->supports_multiple_defaults = false;
     $this->accepts_null_value = true;
     $this->supports_options = false;
     do_action('bd_xprofile_field_type_membertype', $this);
 }
 /**
  * Constructor for the textarea field type
  *
  * @since BuddyPress (2.0.0)
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('Multi-line Text Area', 'xprofile field type', 'buddypress');
     $this->set_format('/^.*$/m', 'replace');
     /**
      * Fires inside __construct() method for BP_XProfile_Field_Type_Textarea class.
      *
      * @since BuddyPress (2.0.0)
      *
      * @param BP_XProfile_Field_Type_Textarea $this Current instance of
      *                                              the field type textarea.
      */
     do_action('bp_xprofile_field_type_textarea', $this);
 }
 /**
  * Constructor for the textbox field type.
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('Text Box', 'xprofile field type', 'buddypress');
     $this->set_format('/^.*$/', 'replace');
     /**
      * Fires inside __construct() method for BP_XProfile_Field_Type_Textbox class.
      *
      * @since 2.0.0
      *
      * @param BP_XProfile_Field_Type_Textbox $this Current instance of
      *                                             the field type text box.
      */
     do_action('bp_xprofile_field_type_textbox', $this);
 }
 /**
  * Constructor for the URL field type
  *
  * @since 2.1.0
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('URL', 'xprofile field type', 'buddypress');
     $this->set_format('_^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]+-?)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?$_iuS', 'replace');
     /**
      * Fires inside __construct() method for BP_XProfile_Field_Type_URL class.
      *
      * @since 2.0.0
      *
      * @param BP_XProfile_Field_Type_URL $this Current instance of
      *                                         the field type URL.
      */
     do_action('bp_xprofile_field_type_url', $this);
 }
 /**
  * Constructor for the number field type
  *
  * @since BuddyPress (2.0.0)
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('Number', 'xprofile field type', 'buddypress');
     $this->set_format('/^\\d+|-\\d+$/', 'replace');
     /**
      * Fires inside __construct() method for BP_XProfile_Field_Type_Number class.
      *
      * @since BuddyPress (2.0.0)
      *
      * @param BP_XProfile_Field_Type_Number $this Current instance of
      *                                            the field type number.
      */
     do_action('bp_xprofile_field_type_number', $this);
 }
 /**
  * Constructor for the datebox field type.
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('Date Selector', 'xprofile field type', 'buddypress');
     $this->set_format('/^\\d{4}-\\d{1,2}-\\d{1,2} 00:00:00$/', 'replace');
     // "Y-m-d 00:00:00"
     /**
      * Fires inside __construct() method for BP_XProfile_Field_Type_Datebox class.
      *
      * @since 2.0.0
      *
      * @param BP_XProfile_Field_Type_Datebox $this Current instance of
      *                                             the field type datebox.
      */
     do_action('bp_xprofile_field_type_datebox', $this);
 }
 /**
  * Output HTML for this field type's children options on the wp-admin Profile Fields,
  * "Add Field" and "Edit Field" screens.
  *
  * Must be used inside the {@link bp_profile_fields()} template loop.
  *
  * @since 2.0.0
  *
  * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen.
  * @param string            $control_type  Optional. HTML input type used to render the current
  *                                         field's child options.
  */
 public function admin_new_field_html(BP_XProfile_Field $current_field, $control_type = '')
 {
     parent::admin_new_field_html($current_field, 'checkbox');
 }
 /**
  * Constructor for the number field type
  *
  * @since BuddyPress (2.0.0)
  */
 public function __construct()
 {
     parent::__construct();
     $this->category = _x('Single Fields', 'xprofile field type category', 'buddypress');
     $this->name = _x('Number', 'xprofile field type', 'buddypress');
     $this->set_format('/^\\d+|-\\d+$/', 'replace');
     do_action('bp_xprofile_field_type_number', $this);
 }
 /**
  * Constructor for the placeholder field type.
  *
  * @since 2.0.1
  */
 public function __construct()
 {
     parent::__construct();
     $this->set_format('/.*/', 'replace');
 }
 public function is_valid($values)
 {
     $this->validation_whitelist = null;
     return parent::is_valid($values);
 }