k@EerUs@@PM UKw/Xoc\appframework\routing\countǯOC\AppFramework\Routing\countҟd oc\appframework\routing\explodeJO/Xoc\appframework\routing\ltrimS\ƘOC\AppFramework\Routing\explode4ǯOC\AppFramework\Routing\ltrim:U UЅ Ui~getRichSubjectParameters$MXgetRichMessageParameters@Q UU? UR UNŐocp\userstatus\iuserstatusU6Acting user cannot be resolved UH?ȸ Usoca\notifications\json_encode;U_6Xoc\core\controller\json_encodeH;Us@@!J3u@Uk'܁RIshouldRemoveCanInstallFileU8Uindex.php/core/apps/recommendedo4BǗoc\core\controller\str_containsH6Us@@?u@Uof message keys to localized, user-facing, messages. */ $map = apply_filters( 'tribe_events_views_v2_messages_map', $map ); // If not found return the key itself. $match = Arr::get( $map, $key, $key ); if ( empty( count( $values ) ) ) { return $match; } $need_events_label_keys = [ 'day_no_results_found', 'day_no_results_found_w_ff_link' ]; /** * Filters the array of keys of the messages that need the events label. * * @since 5.0.3 * * @param array $need_events_label_keys Array of keys of the messages that need events label. */ $need_events_label_keys = apply_filters( 'tribe_events_views_v2_messages_need_events_label_keys', $need_events_label_keys ); if ( in_array( $key, $need_events_label_keys ) ) { array_unshift( $values, tribe_get_event_label_plural_lowercase() ); } return sprintf( $match, ...$values ); } /** * Applies the current message render policy to the messages and returns an array of messages. * * @since 4.9.11 * * @return array An array of messages in the shape `[ => [ ... ] ]`. */ public function to_array() { return $this->apply_render_strategy( $this->messages ); } /** * Applies the render strategy to the collection of messages. * * @since 4.9.11 * * @param array $messages The collection of messages to apply the render strategy to. * * @return array An array of messages after the current strategy application. * No matter the render strategy, the array always has shape * `[ => [ ... ] ]`. */ protected function apply_render_strategy( array $messages = [] ) { if ( empty( $messages ) ) { return []; } $updated_messages = $this->messages; switch ( $this->render_strategy ) { case static::RENDER_STRATEGY_PRIORITY_LAST: array_walk( $updated_messages, static function ( array &$value, $message_type ) { ksort( $value ); // Keep the highest priority (lower number). $highest = array_filter( (array) reset( $value ) ); // Keep only the last message. $value = ! empty( $highest ) ? [ end( $highest ) ] : []; } ); break; case static::RENDER_STRATEGY_PRIORITY_FIRST: array_walk( $updated_messages, static function ( array &$value, $message_type ) { ksort( $value ); // Keep the highest priority (lower number). $highest = array_filter( (array) reset( $value ) ); // Keep only the first message. $value = ! empty( $highest ) ? [ reset( $highest ) ] : []; } ); break; default: case static::RENDER_STRATEGY_LIST: array_walk( $updated_messages, static function ( array &$value, $message_type ) { ksort( $value ); } ); break; } // Remove empty entries. return array_filter( $updated_messages ); } /** * Sets the render strategy that the collection should use to render the messages in the `to_array` method. * * @since 4.9.11 * * @param string $render_strategy One of the `RENDER_STRATEGY_` constants. */ public function set_render_strategy( $render_strategy ) { $this->render_strategy = $render_strategy; } /** * Inserts a message in the collection, at a specific priority. * * @since 4.9.11 * * @param string $message_type The type of message to insert, while there is no check on the type, the suggestion * is to use one of the `TYPE_` constants. * @param string $message The message to insert. * @param int $priority the priority of the message among the types; defaults to `10`. Similarly to the * priority concept of WordPress filters, an higher number has a lower priority. */ public function insert( $message_type, $message, $priority = 10 ) { if ( empty( $this->messages[ $message_type ][ $priority ] ) ) { $this->messages[ $message_type ][ $priority ] = [ $message ]; return; } $this->messages[ $message_type ][ $priority ][] = $message; } /** * Resets a specific type of messages or all of them. * * @since 4.9.11 * * @param null|string $type The type of message to reset, or `null` to reset all messages. * @param null|int $priority The specific priority to reset, this will be ignored if the `$type` parameter * is not set. */ public function reset( $type = null, $priority = null ) { if ( null !== $type && isset( $this->messages[ $type ] ) ) { if ( null !== $priority ) { if ( isset( $this->messages[ $type ][ $priority ] ) ) { unset( $this->messages[ $type ][ $priority ] ); } } else { unset( $this->messages[ $type ] ); } } else { $this->messages = []; } } }

Events for 05.09.2019

Views Navigation

Event Views Navigation

Today