Skip to:
Content

BuddyPress.org

Changeset 6121


Ignore:
Timestamp:
06/19/2012 01:27:00 PM (14 years ago)
Author:
boonebgorges
Message:

Removes static and access declarations on methods in bp-core-classes.php

See #4274 and r6119

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-classes.php

    r6022 r6121  
    125125     * @param boolean $populate_extras Whether to fetch extra information such as group/friendship counts or not.
    126126     */
    127     public function __construct( $user_id, $populate_extras = false ) {
     127    function __construct( $user_id, $populate_extras = false ) {
    128128        if ( !empty( $user_id ) ) {
    129129            $this->id = $user_id;
     
    148148     * @uses bp_profile_last_updated_date() Returns the last updated date for a user.
    149149     */
    150     private function populate() {
     150    function populate() {
    151151
    152152        if ( bp_is_active( 'xprofile' ) )
     
    181181     * Populates extra fields such as group and friendship counts.
    182182     */
    183     private function populate_extras() {
     183    function populate_extras() {
    184184
    185185        if ( bp_is_active( 'friends' ) ) {
     
    193193    }
    194194
    195     private function get_profile_data() {
     195    function get_profile_data() {
    196196        return BP_XProfile_ProfileData::get_all_for_user( $this->id );
    197197    }
     
    199199    /** Static Methods ********************************************************/
    200200
    201     public static function get_users( $type, $limit = 0, $page = 1, $user_id = 0, $include = false, $search_terms = false, $populate_extras = true, $exclude = false, $meta_key = false, $meta_value = false ) {
     201    function get_users( $type, $limit = 0, $page = 1, $user_id = 0, $include = false, $search_terms = false, $populate_extras = true, $exclude = false, $meta_key = false, $meta_value = false ) {
    202202        global $wpdb, $bp;
    203203
     
    392392     * @static
    393393     */
    394     public static function get_users_by_letter( $letter, $limit = null, $page = 1, $populate_extras = true, $exclude = '' ) {
     394    function get_users_by_letter( $letter, $limit = null, $page = 1, $populate_extras = true, $exclude = '' ) {
    395395        global $bp, $wpdb;
    396396
     
    454454     * @static
    455455     */
    456     public static function get_specific_users( $user_ids, $limit = null, $page = 1, $populate_extras = true ) {
     456    function get_specific_users( $user_ids, $limit = null, $page = 1, $populate_extras = true ) {
    457457        global $wpdb;
    458458
     
    499499     * @static
    500500     */
    501     public static function search_users( $search_terms, $limit = null, $page = 1, $populate_extras = true ) {
     501    function search_users( $search_terms, $limit = null, $page = 1, $populate_extras = true ) {
    502502        global $bp, $wpdb;
    503503
     
    543543     * @static
    544544     */
    545     public static function get_user_extras( &$paged_users, &$user_ids, $type = false ) {
     545    function get_user_extras( &$paged_users, &$user_ids, $type = false ) {
    546546        global $bp, $wpdb;
    547547
     
    623623     * @static
    624624     */
    625     public static function get_core_userdata( $user_id ) {
     625    function get_core_userdata( $user_id ) {
    626626        global $wpdb;
    627627
     
    706706     * @param integer $id
    707707     */
    708     public function __construct( $id = 0 ) {
     708    function __construct( $id = 0 ) {
    709709        if ( !empty( $id ) ) {
    710710            $this->id = $id;
     
    720720     * @return bool Success or failure
    721721     */
    722     public function save() {
     722    function save() {
    723723        global $bp, $wpdb;
    724724
     
    748748     * @global wpdb $wpdb WordPress database object
    749749     */
    750     private function populate() {
     750    function populate() {
    751751        global $bp, $wpdb;
    752752
     
    764764    /** Static Methods ********************************************************/
    765765
    766     public static function check_access( $user_id, $notification_id ) {
     766    function check_access( $user_id, $notification_id ) {
    767767        global $wpdb, $bp;
    768768
     
    780780     * @static
    781781     */
    782     public static function get_all_for_user( $user_id, $status = 'is_new' ) {
     782    function get_all_for_user( $user_id, $status = 'is_new' ) {
    783783        global $bp, $wpdb;
    784784
     
    798798     * @static
    799799     */
    800     public static function delete_for_user_by_type( $user_id, $component_name, $component_action ) {
     800    function delete_for_user_by_type( $user_id, $component_name, $component_action ) {
    801801        global $bp, $wpdb;
    802802
     
    816816     * @static
    817817     */
    818     public static function delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
     818    function delete_for_user_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ) {
    819819        global $bp, $wpdb;
    820820
     
    834834     * @static
    835835     */
    836     public static function delete_from_user_by_type( $user_id, $component_name, $component_action ) {
     836    function delete_from_user_by_type( $user_id, $component_name, $component_action ) {
    837837        global $bp, $wpdb;
    838838
     
    851851     * @static
    852852     */
    853     public static function delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ) {
     853    function delete_all_by_type( $item_id, $component_name, $component_action, $secondary_item_id ) {
    854854        global $bp, $wpdb;
    855855
     
    10031003     * @return bool False if not allowed
    10041004     */
    1005     public function __construct( $args = '' ) {
     1005    function __construct( $args = '' ) {
    10061006
    10071007        // Default arguments
     
    11071107     * @return string
    11081108     */
    1109     public function contents() {
     1109    function contents() {
    11101110        return $this->contents;
    11111111    }
     
    11161116     * Output contents of button
    11171117     */
    1118     public function display() {
     1118    function display() {
    11191119        if ( !empty( $this->contents ) )
    11201120            echo $this->contents;
     
    11381138     * @global unknown $wp_embed
    11391139     */
    1140     public function __construct() {
     1140    function __construct() {
    11411141        global $wp_embed;
    11421142
     
    11871187     * @return string The embed HTML on success, otherwise the original URL.
    11881188     */
    1189     public function shortcode( $attr, $url = '' ) {
     1189    function shortcode( $attr, $url = '' ) {
    11901190        if ( empty( $url ) )
    11911191            return '';
     
    12521252     * @return string The embed HTML on success, otherwise the original URL.
    12531253     */
    1254     public function parse_oembed( $id, $url, $attr, $rawattr ) {
     1254    function parse_oembed( $id, $url, $attr, $rawattr ) {
    12551255        $id = intval( $id );
    12561256
Note: See TracChangeset for help on using the changeset viewer.