bb_pull_cols

The BuddyPress bb pull cols function.

Description

bb_pull_cols( $obj_array ); 

Parameters (1)

0. $obj_array
The obj array.

Usage

  1. if ( !function_exists( 'bb_pull_cols' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The obj array. 
  5. $obj_array = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_pull_cols($obj_array); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_pull_cols( $obj_array ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  3. $r = new stdClass; 
  4. foreach ( array_keys($obj_array) as $o ) 
  5. foreach ( get_object_vars( $obj_array[$o] ) as $k => $v ) 
  6. $r->{$k}[] = $v; 
  7.  
  8. if ( 1 == func_num_args() ) 
  9. return $r; 
  10.  
  11. $args = func_get_args(); 
  12. $args = array_splice($args, 1); 
  13.  
  14. $a = array(); 
  15. foreach ( $args as $arg ) 
  16. $a[] = $r->$arg; 
  17. return $a;