[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 // Testing Component Class. 4 class BPTest_Component extends BP_Component { 5 /** 6 * Globals to test. 7 * 8 * @var array 9 */ 10 public $globals = array(); 11 12 // Start the `test` component setup process. 13 public function __construct( $args = array() ) { 14 $r = bp_parse_args( 15 $args, 16 array( 17 'id' => 'example', 18 'name' => 'Example Component', 19 'globals' => array( 20 'slug' => 'example', 21 ), 22 ) 23 ); 24 25 $this->globals = $r['globals']; 26 27 parent::start( 28 $r['id'], 29 $r['name'] 30 ); 31 } 32 33 // Setup Test Globals. 34 public function setup_globals( $args = array() ) { 35 parent::setup_globals( $this->globals ); 36 } 37 }
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 |