/bp-xprofile/classes/class-bp-xprofile-field-type-placeholder.php

  1. <?php 
  2. /** 
  3. * BuddyPress XProfile Classes. 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage XProfileClasses 
  7. * @since 2.0.1 
  8. */ 
  9.  
  10. // Exit if accessed directly. 
  11. defined( 'ABSPATH' ) || exit; 
  12.  
  13. /** 
  14. * A placeholder xprofile field type. Doesn't do anything. 
  15. * 
  16. * Used if an existing field has an unknown type (e.g. one provided by a missing third-party plugin). 
  17. * 
  18. * @since 2.0.1 
  19. */ 
  20. class BP_XProfile_Field_Type_Placeholder extends BP_XProfile_Field_Type { 
  21.  
  22. /** 
  23. * Constructor for the placeholder field type. 
  24. * 
  25. * @since 2.0.1 
  26. */ 
  27. public function __construct() { 
  28. parent::__construct(); 
  29.  
  30. $this->set_format( '/.*/', 'replace' ); 
  31.  
  32. /** 
  33. * Prevent any HTML being output for this field type. 
  34. * 
  35. * @since 2.0.1 
  36. * 
  37. * @param array $raw_properties Optional key/value array of 
  38. * {@link http://dev.w3.org/html5/markup/input.text.html permitted attributes} 
  39. * that you want to add. 
  40. */ 
  41. public function edit_field_html( array $raw_properties = array() ) { 
  42.  
  43. /** 
  44. * Prevent any HTML being output for this field type. 
  45. * 
  46. * @since 2.0.1 
  47. * 
  48. * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 
  49. */ 
  50. public function admin_field_html( array $raw_properties = array() ) { 
  51.  
  52. /** 
  53. * Prevent any HTML being output for this field type. 
  54. * 
  55. * @since 2.0.1 
  56. * 
  57. * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 
  58. * @param string $control_type Optional. HTML input type used to render the current 
  59. * field's child options. 
  60. */ 
  61. public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} 
.