Changeset 3376 for branches/plugin/bbp-includes/bbp-core-classes.php
- Timestamp:
- 07/25/2011 06:40:41 AM (15 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbp-includes/bbp-core-classes.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.