Changeset 3376
- Timestamp:
- 07/25/2011 06:40:41 AM (15 years ago)
- Location:
- branches/plugin
- Files:
-
- 11 edited
-
bbp-admin/bbp-admin.php (modified) (1 diff)
-
bbp-admin/bbp-forums.php (modified) (4 diffs)
-
bbp-admin/bbp-replies.php (modified) (4 diffs)
-
bbp-admin/bbp-topics.php (modified) (4 diffs)
-
bbp-admin/bbp-users.php (modified) (3 diffs)
-
bbp-admin/importers/bbpress.php (modified) (2 diffs)
-
bbp-includes/bbp-core-akismet.php (modified) (2 diffs)
-
bbp-includes/bbp-core-classes.php (modified) (6 diffs)
-
bbp-includes/bbp-core-hooks.php (modified) (1 diff)
-
bbp-includes/bbp-core-shortcodes.php (modified) (1 diff)
-
bbpress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-admin.php
r3375 r3376 43 43 44 44 /** 45 * The main bbPress admin loader (PHP4 compat)45 * The main bbPress admin loader 46 46 * 47 47 * @since bbPress (r2515) 48 48 * 49 * @uses BBP_Admin::_setup_globals() Setup the globals needed 50 * @uses BBP_Admin::_includes() Include the required files 51 * @uses BBP_Admin::_setup_actions() Setup the hooks and actions 52 */ 53 public function BBP_Admin() { 54 $this->__construct(); 55 } 56 57 /** 58 * The main bbPress admin loader 59 * 60 * @since bbPress (r2515) 61 * 62 * @uses BBP_Admin::_setup_globals() Setup the globals needed 63 * @uses BBP_Admin::_includes() Include the required files 64 * @uses BBP_Admin::_setup_actions() Setup the hooks and actions 49 * @uses BBP_Admin::setup_globals() Setup the globals needed 50 * @uses BBP_Admin::includes() Include the required files 51 * @uses BBP_Admin::setup_actions() Setup the hooks and actions 65 52 */ 66 53 public function __construct() { -
branches/plugin/bbp-admin/bbp-forums.php
r3343 r3376 31 31 32 32 /** 33 * The main bbPress forums admin loader (PHP4 compat)33 * The main bbPress forums admin loader 34 34 * 35 35 * @since bbPress (r2515) 36 36 * 37 * @uses BBP_Forums_Admin::_setup_globals() Setup the globals needed 38 * @uses BBP_Forums_Admin::_setup_actions() Setup the hooks and actions 39 */ 40 function BBP_Forums_Admin() { 41 $this->__construct(); 42 } 43 44 /** 45 * The main bbPress forums admin loader 46 * 47 * @since bbPress (r2515) 48 * 49 * @uses BBP_Forums_Admin::_setup_globals() Setup the globals needed 50 * @uses BBP_Forums_Admin::_setup_actions() Setup the hooks and actions 37 * @uses BBP_Forums_Admin::setup_globals() Setup the globals needed 38 * @uses BBP_Forums_Admin::setup_actions() Setup the hooks and actions 39 * @uses BBP_Forums_Admin::setup_help() Setup the help text 51 40 */ 52 41 function __construct() { 53 $this-> _setup_globals();54 $this-> _setup_actions();55 $this-> _setup_help();42 $this->setup_globals(); 43 $this->setup_actions(); 44 $this->setup_help(); 56 45 } 57 46 … … 68 57 * @uses bbp_get_reply_post_type() To get the reply post type 69 58 */ 70 function _setup_actions() {59 function setup_actions() { 71 60 72 61 // Add some general styling to the admin area … … 94 83 * @access private 95 84 */ 96 function _setup_globals() {85 function setup_globals() { 97 86 98 87 // Setup the post type for this admin component … … 106 95 * @access private 107 96 */ 108 function _setup_help() {97 function setup_help() { 109 98 110 99 // Define local variable(s) -
branches/plugin/bbp-admin/bbp-replies.php
r3364 r3376 31 31 32 32 /** 33 * The main bbPress admin loader (PHP4 compat)33 * The main bbPress admin loader 34 34 * 35 35 * @since bbPress (r2515) 36 36 * 37 * @uses BBP_Replies_Admin::_setup_globals() Setup the globals needed 38 * @uses BBP_Topics_Admin::_setup_actions() Setup the hooks and actions 39 */ 40 function BBP_Replies_Admin() { 41 $this->__construct(); 42 } 43 44 /** 45 * The main bbPress admin loader 46 * 47 * @since bbPress (r2515) 48 * 49 * @uses BBP_Replies_Admin::_setup_globals() Setup the globals needed 50 * @uses BBP_Replies_Admin::_setup_actions() Setup the hooks and actions 37 * @uses BBP_Replies_Admin::setup_globals() Setup the globals needed 38 * @uses BBP_Replies_Admin::setup_actions() Setup the hooks and actions 39 * @uses BBP_Replies_Admin::setup_actions() Setup the help text 51 40 */ 52 41 function __construct() { 53 $this-> _setup_globals();54 $this-> _setup_actions();55 $this-> _setup_help();42 $this->setup_globals(); 43 $this->setup_actions(); 44 $this->setup_help(); 56 45 } 57 46 … … 68 57 * @uses bbp_get_reply_post_type() To get the reply post type 69 58 */ 70 function _setup_actions() {59 function setup_actions() { 71 60 72 61 // Add some general styling to the admin area … … 106 95 * @access private 107 96 */ 108 function _setup_globals() {97 function setup_globals() { 109 98 110 99 // Setup the post type for this admin component … … 118 107 * @access private 119 108 */ 120 function _setup_help() {109 function setup_help() { 121 110 122 111 // Define local variable(s) -
branches/plugin/bbp-admin/bbp-topics.php
r3348 r3376 31 31 32 32 /** 33 * The main bbPress topics admin loader (PHP4 compat)33 * The main bbPress topics admin loader 34 34 * 35 35 * @since bbPress (r2515) 36 36 * 37 * @uses BBP_Topics_Admin::_setup_globals() Setup the globals needed 38 * @uses BBP_Topics_Admin::_setup_actions() Setup the hooks and actions 39 */ 40 function BBP_Topics_Admin() { 41 $this->__construct(); 42 } 43 44 /** 45 * The main bbPress topics admin loader 46 * 47 * @since bbPress (r2515) 48 * 49 * @uses BBP_Topics_Admin::_setup_globals() Setup the globals needed 50 * @uses BBP_Topics_Admin::_setup_actions() Setup the hooks and actions 37 * @uses BBP_Topics_Admin::setup_globals() Setup the globals needed 38 * @uses BBP_Topics_Admin::setup_actions() Setup the hooks and actions 39 * @uses BBP_Topics_Admin::setup_help() Setup the help text 51 40 */ 52 41 function __construct() { 53 $this-> _setup_globals();54 $this-> _setup_actions();55 $this-> _setup_help();42 $this->setup_globals(); 43 $this->setup_actions(); 44 $this->setup_help(); 56 45 } 57 46 … … 68 57 * @uses bbp_get_reply_post_type() To get the reply post type 69 58 */ 70 function _setup_actions() {59 function setup_actions() { 71 60 72 61 // Add some general styling to the admin area … … 106 95 * @access private 107 96 */ 108 function _setup_globals() {97 function setup_globals() { 109 98 110 99 // Setup the post type for this admin component … … 118 107 * @access private 119 108 */ 120 function _setup_help() {109 function setup_help() { 121 110 122 111 // Define local variable(s) -
branches/plugin/bbp-admin/bbp-users.php
r3350 r3376 26 26 27 27 /** 28 * The bbPress users admin loader (PHP4 compat)29 *30 * @since bbPress (r2515)31 *32 * @uses BBP_Users_Admin::_setup_globals() Setup the globals needed33 * @uses BBP_Users_Admin::_setup_actions() Setup the hooks and actions34 */35 function BBP_Users_Admin() {36 $this->__construct();37 }38 39 /**40 28 * The bbPress users admin loader 41 29 * 42 30 * @since bbPress (r2515) 43 31 * 44 * @uses BBP_Users_Admin:: _setup_globals() Setup the globals needed45 * @uses BBP_Users_Admin:: _setup_actions() Setup the hooks and actions32 * @uses BBP_Users_Admin::setup_globals() Setup the globals needed 33 * @uses BBP_Users_Admin::setup_actions() Setup the hooks and actions 46 34 */ 47 35 function __construct() { 48 $this-> _setup_globals();49 $this-> _setup_actions();36 $this->setup_globals(); 37 $this->setup_actions(); 50 38 } 51 39 … … 58 46 * @uses add_action() To add various actions 59 47 */ 60 function _setup_actions() {48 function setup_actions() { 61 49 62 50 // User profile edit/display actions … … 75 63 * @access private 76 64 */ 77 function _setup_globals() { }65 function setup_globals() { } 78 66 79 67 /** -
branches/plugin/bbp-admin/importers/bbpress.php
r3375 r3376 31 31 32 32 $args = func_get_args(); 33 $args = call_user_func_array( array( &$this, ' _init' ), $args );33 $args = call_user_func_array( array( &$this, 'init' ), $args ); 34 34 35 35 if ( $args['host'] ) … … 55 55 * Based on, and taken from, the BackPress class in turn taken from the 1.0 branch of bbPress. 56 56 */ 57 function _init( $args )57 function init( $args ) 58 58 { 59 59 if ( 4 == func_num_args() ) { -
branches/plugin/bbp-includes/bbp-core-akismet.php
r3348 r3376 23 23 24 24 /** 25 * The main bbPress Akismet loader (PHP4 compat)25 * The main bbPress Akismet loader 26 26 * 27 27 * @since bbPress (r3277) 28 */29 function BBP_Akismet() {30 $this->__construct();31 }32 33 /**34 * The main bbPress Akismet loader35 *36 * @since bbPress (r3277)37 28 * 38 29 * @uses add_filter() 39 30 */ 40 31 function __construct() { 41 $this-> _setup_actions();32 $this->setup_actions(); 42 33 } 43 34 … … 51 42 * @uses add_action() To add various actions 52 43 */ 53 function _setup_actions() {44 function setup_actions() { 54 45 55 46 // Bail if no akismet -
branches/plugin/bbp-includes/bbp-core-classes.php
r3243 r3376 65 65 * - query: The loop for this component (WP_Query) 66 66 * - current_id: The current ID of the queried object 67 * @uses BBP_Component:: _setup_globals() Setup the globals needed68 * @uses BBP_Component:: _includes() Include the required files69 * @uses BBP_Component:: _setup_actions() Setup the hooks and actions67 * @uses BBP_Component::setup_globals() Setup the globals needed 68 * @uses BBP_Component::includes() Include the required files 69 * @uses BBP_Component::setup_actions() Setup the hooks and actions 70 70 */ 71 71 function BBP_Component( $args = '' ) { … … 73 73 return; 74 74 75 $this-> _setup_globals( $args );76 $this-> _includes();77 $this-> _setup_actions();75 $this->setup_globals( $args ); 76 $this->includes(); 77 $this->setup_actions(); 78 78 } 79 79 … … 87 87 * @uses apply_filters() Calls 'bbp_{@link BBP_Component::name}_slug' 88 88 */ 89 function _setup_globals( $args = '' ) {89 function setup_globals( $args = '' ) { 90 90 $this->name = $args['name']; 91 91 $this->id = apply_filters( 'bbp_' . $this->name . '_id', $args['id'] ); … … 99 99 * @access private 100 100 * 101 * @uses do_action() Calls 'bbp_{@link BBP_Component::name} _includes'102 */ 103 function _includes() {104 do_action( 'bbp_' . $this->name . ' _includes' );101 * @uses do_action() Calls 'bbp_{@link BBP_Component::name}includes' 102 */ 103 function includes() { 104 do_action( 'bbp_' . $this->name . 'includes' ); 105 105 } 106 106 … … 113 113 * @uses add_action() To add various actions 114 114 * @uses do_action() Calls 115 * 'bbp_{@link BBP_Component::name} _setup_actions'116 */ 117 function _setup_actions() {115 * 'bbp_{@link BBP_Component::name}setup_actions' 116 */ 117 function setup_actions() { 118 118 // Register post types 119 119 add_action( 'bbp_register_post_types', array ( $this, 'register_post_types' ), 10, 2 ); … … 129 129 130 130 // Additional actions can be attached here 131 do_action( 'bbp_' . $this->name . ' _setup_actions' );131 do_action( 'bbp_' . $this->name . 'setup_actions' ); 132 132 } 133 133 -
branches/plugin/bbp-includes/bbp-core-hooks.php
r3374 r3376 13 13 * There are a few common places that additional actions can currently be found 14 14 * 15 * - bbPress: In {@link bbPress:: _setup_actions()} in bbpress.php16 * - Component: In {@link BBP_Component:: _setup_actions()} in15 * - bbPress: In {@link bbPress::setup_actions()} in bbpress.php 16 * - Component: In {@link BBP_Component::setup_actions()} in 17 17 * bbp-includes/bbp-classes.php 18 * - Admin: More in {@link BBP_Admin:: _setup_actions()} in18 * - Admin: More in {@link BBP_Admin::setup_actions()} in 19 19 * bbp-admin/bbp-admin.php 20 20 */ -
branches/plugin/bbp-includes/bbp-core-shortcodes.php
r3348 r3376 33 33 * @since bbPress (r3031) 34 34 * 35 * @uses __construct() 36 */ 37 public function BBP_Shortcodes() { 38 $this->__construct(); 39 } 40 41 /** 42 * Add the register_shortcodes action to bbp_init 43 * 44 * @since bbPress (r3031) 45 * 46 * @uses _setup_globals() 47 * @uses _add_shortcodes() 35 * @uses setup_globals() 36 * @uses add_shortcodes() 48 37 */ 49 38 public function __construct() { -
branches/plugin/bbpress.php
r3359 r3376 289 289 * @since bbPress (r2464) 290 290 * 291 * @uses bbPress:: _setup_globals() Setup the globals needed292 * @uses bbPress:: _includes() Include the required files293 * @uses bbPress:: _setup_actions() Setup the hooks and actions291 * @uses bbPress::setup_globals() Setup the globals needed 292 * @uses bbPress::includes() Include the required files 293 * @uses bbPress::setup_actions() Setup the hooks and actions 294 294 */ 295 295 public function __construct() {
Note: See TracChangeset
for help on using the changeset viewer.