PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.2
Elementor Website Builder – more than just a page builder v3.29.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / global-classes / global-classes.php

global-classes.php in Elementor Website Builder – more than just a page builder 3.29.2, at modules/global-classes/global-classes.php

35 lines 691 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\GlobalClasses;
4
5 use Elementor\Core\Utils\Collection;
6
7 class Global_Classes {
8 private Collection $items;
9 private Collection $order;
10
11 public static function make( array $items = [], array $order = [] ) {
12 return new static( $items, $order );
13 }
14
15 private function __construct( array $data = [], array $order = [] ) {
16 $this->items = Collection::make( $data );
17 $this->order = Collection::make( $order );
18 }
19
20 public function get_items() {
21 return $this->items;
22 }
23
24 public function get_order() {
25 return $this->order;
26 }
27
28 public function get() {
29 return [
30 'items' => $this->get_items()->all(),
31 'order' => $this->get_order()->all(),
32 ];
33 }
34 }
35