[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/tests/phpunit/assets/ -> bptest-xprofile-field-type.php (source)

   1  <?php
   2  
   3  // Testing Field Type class.
   4  class BPTest_XProfile_Field_Type extends BP_XProfile_Field_Type {
   5      public $visibility = 'adminsonly';
   6  
   7      public static $supported_features = array(
   8          'required'                => true,
   9          'do_autolink'             => false,
  10          'allow_custom_visibility' => false,
  11          'member_types'            => true,
  12      );
  13  
  14  	public function __construct() {
  15          parent::__construct();
  16  
  17          $this->category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' );
  18          $this->name     = _x( 'Test Field', 'xprofile field type', 'buddypress' );
  19  
  20          $this->set_format( '/^.*$/', 'replace' );
  21      }
  22  
  23  	public function edit_field_html( array $raw_properties = array() ) {
  24          return;
  25      }
  26  
  27  	public function admin_field_html( array $raw_properties = array() ) {
  28          return;
  29      }
  30  }


Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1