__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Elementor\Core\Utils;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Static_Collection {
/**
* The current Collection instance.
*
* @var Collection
*/
protected $collection;
/**
* Return only unique values.
*
* @var bool
*/
protected $unique_values = false;
/**
* @inheritDoc
*/
public function __construct( array $items = [], $unique_values = false ) {
$this->collection = new Collection( $items );
$this->unique_values = $unique_values;
}
/**
* Since this class is a wrapper, every call will be forwarded to wrapped class.
* Most of the collection methods returns a new collection instance, and therefore
* it will be assigned as the current collection instance after executing any method.
*
* @param string $name
* @param array $arguments
*/
public function __call( $name, $arguments ) {
$call = call_user_func_array( [ $this->collection, $name ], $arguments );
if ( $call instanceof Collection ) {
$this->collection = $this->unique_values ?
$call->unique() :
$call;
}
return $call;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| api | Folder | 0775 |
|
|
| import-export | Folder | 0775 |
|
|
| promotions | Folder | 0775 |
|
|
| svg | Folder | 0775 |
|
|
| ab-test.php | File | 2.45 KB | 0664 |
|
| assets-config-provider.php | File | 1.49 KB | 0664 |
|
| assets-translation-loader.php | File | 2.51 KB | 0664 |
|
| collection.php | File | 10.13 KB | 0664 |
|
| exceptions.php | File | 709 B | 0664 |
|
| force-locale.php | File | 3.55 KB | 0664 |
|
| hints.php | File | 13.31 KB | 0664 |
|
| http.php | File | 981 B | 0664 |
|
| plugins-manager.php | File | 2.84 KB | 0664 |
|
| static-collection.php | File | 1.09 KB | 0664 |
|
| str.php | File | 1001 B | 0664 |
|
| version.php | File | 3.78 KB | 0664 |
|