* list( $author, $bio ) = R::loadMulti( 'author, bio', $id ); * * * @param OODB $oodb OODB object * @param string|array $types the set of types to load at once * @param mixed $id the common ID * * @return OODBBean */ public static function load( OODB $oodb, $types, $id ) { if ( is_string( $types ) ) $types = explode( ',', $types ); if ( !is_array( $types ) ) return array(); foreach ( $types as $k => $typeItem ) { $types[$k] = $oodb->load( $typeItem, $id ); } return $types; } }