[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
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 /** 34 * Prevent any HTML being output for this field type. 35 * 36 * @since 2.0.1 37 * 38 * @param array $raw_properties Optional key/value array of 39 * {@link http://dev.w3.org/html5/markup/input.text.html permitted attributes} 40 * that you want to add. 41 */ 42 public function edit_field_html( array $raw_properties = array() ) { 43 } 44 45 /** 46 * Prevent any HTML being output for this field type. 47 * 48 * @since 2.0.1 49 * 50 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 51 */ 52 public function admin_field_html( array $raw_properties = array() ) { 53 } 54 55 /** 56 * Prevent any HTML being output for this field type. 57 * 58 * @since 2.0.1 59 * 60 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 61 * @param string $control_type Optional. HTML input type used to render the current 62 * field's child options. 63 */ 64 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} 65 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |