on( __METHOD__, '12.0.0' ); } /** * Get the nav object corresponding to the specified offset. * * @since 2.6.0 * @deprecated 12.0.0 * * @param mixed $offset Array offset. * @return bool|array */ protected function get_nav( $offset ) { _deprecated_function( __METHOD__, '12.0.0' ); } /** * Get the BP_Core_Nav object corresponding to the component, based on a nav item name. * * The way bp_nav was previously organized makes it impossible to know for sure which component's nav is * being referenced by a given nav item name. We guess in the following manner: * - If we're looking at a group, and the nav item name (`$offset`) is the same as the slug of the current * group, we assume that the proper component nav is 'groups'. * - Otherwise, fall back on 'members'. * * @since 2.6.0 * @deprecated 12.0.0 * * @param string $offset Nav item name. * @return BP_Core_Nav */ protected function get_component_nav( $offset = '' ) { _deprecated_function( __METHOD__, '12.0.0' ); } /** * Get the nav data, formatted as a flat array. * * @since 2.6.0 * @deprecated 12.0.0 * * @return array */ protected function to_array() { _deprecated_function( __METHOD__, '12.0.0' ); } }