run:R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:52
R W Run
DIR
2026-03-11 16:18:51
R W Run
DIR
2026-03-11 16:18:51
R W Run
23.8 KB
2026-03-11 16:18:51
R W Run
7.8 KB
2026-03-11 16:18:52
R W Run
36.1 KB
2026-03-11 16:18:51
R W Run
11.9 KB
2026-03-11 16:18:52
R W Run
18.94 KB
2026-03-11 16:18:52
R W Run
7.35 KB
2026-03-11 16:18:52
R W Run
28.6 KB
2026-03-11 16:18:51
R W Run
316 By
2026-03-11 16:18:51
R W Run
12.9 KB
2026-03-11 16:18:51
R W Run
61.02 KB
2026-03-11 16:18:52
R W Run
15 KB
2026-03-11 16:18:51
R W Run
112.05 KB
2026-03-11 16:18:51
R W Run
12.47 KB
2026-03-11 16:18:51
R W Run
15.07 KB
2026-03-11 16:18:52
R W Run
9.84 KB
2026-03-11 16:18:52
R W Run
13.17 KB
2026-03-11 16:18:52
R W Run
33.83 KB
2026-03-11 16:18:51
R W Run
42.63 KB
2026-03-11 16:18:51
R W Run
55.71 KB
2026-03-11 16:18:52
R W Run
12.53 KB
2026-03-11 16:18:51
R W Run
2.55 KB
2026-03-11 16:18:52
R W Run
28.92 KB
2026-03-11 16:18:52
R W Run
539 By
2026-03-11 16:18:51
R W Run
367 By
2026-03-11 16:18:52
R W Run
42.65 KB
2026-03-11 16:18:51
R W Run
401 By
2026-03-11 16:18:51
R W Run
6.61 KB
2026-03-11 16:18:51
R W Run
664 By
2026-03-11 16:18:52
R W Run
20.63 KB
2026-03-11 16:18:51
R W Run
2.18 KB
2026-03-11 16:18:52
R W Run
453 By
2026-03-11 16:18:52
R W Run
457 By
2026-03-11 16:18:51
R W Run
36.83 KB
2026-03-11 16:18:52
R W Run
2.41 KB
2026-03-11 16:18:52
R W Run
8.28 KB
2026-03-11 16:18:51
R W Run
13.89 KB
2026-03-11 16:18:51
R W Run
11.76 KB
2026-03-11 16:18:51
R W Run
2.65 KB
2026-03-11 16:18:51
R W Run
7.43 KB
2026-03-11 16:18:51
R W Run
17.46 KB
2026-03-11 16:18:51
R W Run
5.14 KB
2026-03-11 16:18:52
R W Run
16.7 KB
2026-03-11 16:18:51
R W Run
8.28 KB
2026-03-11 16:18:52
R W Run
2.92 KB
2026-03-11 16:18:52
R W Run
1.32 KB
2026-03-11 16:18:51
R W Run
4.6 KB
2026-03-11 16:18:52
R W Run
11.62 KB
2026-03-11 16:18:52
R W Run
2.5 KB
2026-03-11 16:18:51
R W Run
1.97 KB
2026-03-11 16:18:51
R W Run
11.25 KB
2026-03-11 16:18:52
R W Run
5.32 KB
2026-03-11 16:18:51
R W Run
10.99 KB
2026-03-11 16:18:52
R W Run
68.32 KB
2026-03-11 16:18:51
R W Run
6.34 KB
2026-03-11 16:18:51
R W Run
5.49 KB
2026-03-11 16:18:51
R W Run
1.99 KB
2026-03-11 16:18:52
R W Run
7.02 KB
2026-03-11 16:18:51
R W Run
4.91 KB
2026-03-11 16:18:52
R W Run
16.86 KB
2026-03-11 16:18:51
R W Run
24.23 KB
2026-03-11 16:18:51
R W Run
3.97 KB
2026-03-11 16:18:51
R W Run
47.66 KB
2026-03-11 16:18:51
R W Run
9.22 KB
2026-03-11 16:18:51
R W Run
25.51 KB
2026-03-11 16:18:51
R W Run
198.38 KB
2026-03-11 16:18:52
R W Run
56.65 KB
2026-03-11 16:18:51
R W Run
10.46 KB
2026-03-11 16:18:51
R W Run
10.95 KB
2026-03-11 16:18:52
R W Run
29.26 KB
2026-03-11 16:18:51
R W Run
70.91 KB
2026-03-11 16:18:52
R W Run
35.3 KB
2026-03-11 16:18:52
R W Run
16.61 KB
2026-03-11 16:18:52
R W Run
2.57 KB
2026-03-11 16:18:52
R W Run
39.83 KB
2026-03-11 16:18:51
R W Run
70.64 KB
2026-03-11 16:18:51
R W Run
15.56 KB
2026-03-11 16:18:52
R W Run
7.33 KB
2026-03-11 16:18:52
R W Run
253 By
2026-03-11 16:18:51
R W Run
7.96 KB
2026-03-11 16:18:52
R W Run
3.23 KB
2026-03-11 16:18:52
R W Run
969 By
2026-03-11 16:18:52
R W Run
16.28 KB
2026-03-11 16:18:51
R W Run
7.22 KB
2026-03-11 16:18:51
R W Run
12.95 KB
2026-03-11 16:18:51
R W Run
6.53 KB
2026-03-11 16:18:51
R W Run
3.42 KB
2026-03-11 16:18:52
R W Run
5.84 KB
2026-03-11 16:18:51
R W Run
1.97 KB
2026-03-11 16:18:51
R W Run
4.3 KB
2026-03-11 16:18:52
R W Run
2.91 KB
2026-03-11 16:18:51
R W Run
16.46 KB
2026-03-11 16:18:52
R W Run
40.6 KB
2026-03-11 16:18:51
R W Run
20.22 KB
2026-03-11 16:18:51
R W Run
36.11 KB
2026-03-11 16:18:52
R W Run
17.01 KB
2026-03-11 16:18:51
R W Run
7.27 KB
2026-03-11 16:18:52
R W Run
6.62 KB
2026-03-11 16:18:52
R W Run
16.49 KB
2026-03-11 16:18:52
R W Run
1.79 KB
2026-03-11 16:18:52
R W Run
29.82 KB
2026-03-11 16:18:51
R W Run
6.67 KB
2026-03-11 16:18:52
R W Run
8.98 KB
2026-03-11 16:18:52
R W Run
19.42 KB
2026-03-11 16:18:51
R W Run
12.01 KB
2026-03-11 16:18:51
R W Run
17.11 KB
2026-03-11 16:18:51
R W Run
6.74 KB
2026-03-11 16:18:52
R W Run
30.93 KB
2026-03-11 16:18:51
R W Run
4.99 KB
2026-03-11 16:18:51
R W Run
4.25 KB
2026-03-11 16:18:51
R W Run
24.72 KB
2026-03-11 16:18:51
R W Run
29.96 KB
2026-03-11 16:18:52
R W Run
6.41 KB
2026-03-11 16:18:51
R W Run
160 KB
2026-03-11 16:18:51
R W Run
6.72 KB
2026-03-11 16:18:52
R W Run
10.92 KB
2026-03-11 16:18:51
R W Run
4.77 KB
2026-03-11 16:18:51
R W Run
3.38 KB
2026-03-11 16:18:51
R W Run
11.18 KB
2026-03-11 16:18:51
R W Run
62.19 KB
2026-03-11 16:18:51
R W Run
2.46 KB
2026-03-11 16:18:51
R W Run
9.17 KB
2026-03-11 16:18:51
R W Run
32.15 KB
2026-03-11 16:18:51
R W Run
34.05 KB
2026-03-11 16:18:52
R W Run
7.15 KB
2026-03-11 16:18:51
R W Run
3.47 KB
2026-03-11 16:18:52
R W Run
1.87 KB
2026-03-11 16:18:52
R W Run
30.91 KB
2026-03-11 16:18:51
R W Run
7.29 KB
2026-03-11 16:18:52
R W Run
7.35 KB
2026-03-11 16:18:51
R W Run
12.54 KB
2026-03-11 16:18:51
R W Run
19.12 KB
2026-03-11 16:18:51
R W Run
18.12 KB
2026-03-11 16:18:52
R W Run
39.99 KB
2026-03-11 16:18:52
R W Run
5.17 KB
2026-03-11 16:18:52
R W Run
979 By
2026-03-11 16:18:51
R W Run
18.44 KB
2026-03-11 16:18:52
R W Run
10.24 KB
2026-03-11 16:18:51
R W Run
1.77 KB
2026-03-11 16:18:52
R W Run
34.9 KB
2026-03-11 16:18:51
R W Run
7.19 KB
2026-03-11 16:18:52
R W Run
160.5 KB
2026-03-11 16:18:51
R W Run
64.27 KB
2026-03-11 16:18:51
R W Run
27.95 KB
2026-03-11 16:18:51
R W Run
4.69 KB
2026-03-11 16:18:51
R W Run
2.94 KB
2026-03-11 16:18:51
R W Run
43.13 KB
2026-03-11 16:18:52
R W Run
2.25 KB
2026-03-11 16:18:52
R W Run
22.5 KB
2026-03-11 16:18:51
R W Run
13.01 KB
2026-03-11 16:18:52
R W Run
3.27 KB
2026-03-11 16:18:51
R W Run
18 KB
2026-03-11 16:18:51
R W Run
210.4 KB
2026-03-11 16:18:52
R W Run
25.86 KB
2026-03-11 16:18:52
R W Run
115.85 KB
2026-03-11 16:18:51
R W Run
373 By
2026-03-11 16:18:52
R W Run
343 By
2026-03-11 16:18:52
R W Run
338 By
2026-03-11 16:18:51
R W Run
100.73 KB
2026-03-11 16:18:52
R W Run
130.93 KB
2026-03-11 16:18:51
R W Run
19.1 KB
2026-03-11 16:18:51
R W Run
17.41 KB
2026-03-11 16:18:52
R W Run
41.98 KB
2026-03-11 16:18:52
R W Run
400 By
2026-03-11 16:18:52
R W Run
11.1 KB
2026-03-11 16:18:52
R W Run
37.02 KB
2026-03-11 16:18:51
R W Run
2.24 KB
2026-03-11 16:18:51
R W Run
188.13 KB
2026-03-11 16:18:51
R W Run
338 By
2026-03-11 16:18:51
R W Run
38 KB
2026-03-11 16:18:51
R W Run
4.02 KB
2026-03-11 16:18:52
R W Run
5.38 KB
2026-03-11 16:18:51
R W Run
3.05 KB
2026-03-11 16:18:52
R W Run
2.61 KB
2026-03-11 16:18:51
R W Run
1.16 KB
2026-03-11 16:18:52
R W Run
4.04 KB
2026-03-11 16:18:51
R W Run
3.71 KB
2026-03-11 16:18:51
R W Run
24.6 KB
2026-03-11 16:18:51
R W Run
9.56 KB
2026-03-11 16:18:51
R W Run
346.43 KB
2026-03-11 16:18:52
R W Run
281.84 KB
2026-03-11 16:18:52
R W Run
14.95 KB
2026-03-11 16:18:51
R W Run
8.44 KB
2026-03-11 16:18:52
R W Run
168.95 KB
2026-03-11 16:18:52
R W Run
20.71 KB
2026-03-11 16:18:52
R W Run
25.27 KB
2026-03-11 16:18:51
R W Run
5.72 KB
2026-03-11 16:18:51
R W Run
4.63 KB
2026-03-11 16:18:52
R W Run
81.73 KB
2026-03-11 16:18:51
R W Run
67.18 KB
2026-03-11 16:18:51
R W Run
156.36 KB
2026-03-11 16:18:52
R W Run
55.19 KB
2026-03-11 16:18:51
R W Run
162 By
2026-03-11 16:18:51
R W Run
61.72 KB
2026-03-11 16:18:51
R W Run
216.06 KB
2026-03-11 16:18:52
R W Run
65.09 KB
2026-03-11 16:18:51
R W Run
25.24 KB
2026-03-11 16:18:52
R W Run
4.81 KB
2026-03-11 16:18:51
R W Run
6.48 KB
2026-03-11 16:18:52
R W Run
21.25 KB
2026-03-11 16:18:51
R W Run
2.79 KB
2026-03-11 16:18:52
R W Run
89.69 KB
2026-03-11 16:18:52
R W Run
19.42 KB
2026-03-11 16:18:52
R W Run
3.69 KB
2026-03-11 16:18:52
R W Run
4.11 KB
2026-03-11 16:18:51
R W Run
40.74 KB
2026-03-11 16:18:51
R W Run
25.38 KB
2026-03-11 16:18:51
R W Run
43.31 KB
2026-03-11 16:18:52
R W Run
102.57 KB
2026-03-11 16:18:52
R W Run
6.18 KB
2026-03-11 16:18:51
R W Run
124.47 KB
2026-03-11 16:18:52
R W Run
35.65 KB
2026-03-11 16:18:52
R W Run
6.94 KB
2026-03-11 16:18:52
R W Run
67.04 KB
2026-03-11 16:18:52
R W Run
10.62 KB
2026-03-11 16:18:51
R W Run
289.35 KB
2026-03-11 16:18:52
R W Run
36.23 KB
2026-03-11 16:18:51
R W Run
200 By
2026-03-11 16:18:52
R W Run
200 By
2026-03-11 16:18:52
R W Run
98.29 KB
2026-03-11 16:18:52
R W Run
30.02 KB
2026-03-11 16:18:52
R W Run
19.03 KB
2026-03-11 16:18:52
R W Run
5.06 KB
2026-03-11 16:18:52
R W Run
255 By
2026-03-11 16:18:51
R W Run
22.66 KB
2026-03-11 16:18:52
R W Run
154.63 KB
2026-03-11 16:18:51
R W Run
9.68 KB
2026-03-11 16:18:51
R W Run
258 By
2026-03-11 16:18:51
R W Run
23.49 KB
2026-03-11 16:18:51
R W Run
3.16 KB
2026-03-11 16:18:51
R W Run
8.4 KB
2026-03-11 16:18:52
R W Run
441 By
2026-03-11 16:18:51
R W Run
7.39 KB
2026-03-11 16:18:51
R W Run
173 KB
2026-03-11 16:18:52
R W Run
544 By
2026-03-11 16:18:52
R W Run
4.17 KB
2026-03-11 16:18:51
R W Run
35.97 KB
2026-03-11 16:18:52
R W Run
1.69 KB
2026-03-11 16:18:51
R W Run
2.84 KB
2026-03-11 16:18:52
R W Run
6.09 KB
2026-03-11 16:18:51
R W Run
8.71 KB
2026-03-11 16:18:51
R W Run
131.84 KB
2026-03-11 16:18:51
R W Run
37.45 KB
2026-03-11 16:18:51
R W Run
173.89 KB
2026-03-11 16:18:51
R W Run
7.09 KB
2026-03-11 16:18:51
R W Run
6.41 KB
2026-03-11 16:18:51
R W Run
1.08 KB
2026-03-11 16:18:51
R W Run
69.46 KB
2026-03-11 16:18:52
R W Run
445 By
2026-03-11 16:18:51
R W Run
799 By
2026-03-11 16:18:52
R W Run
error_log
📄class-wp-list-util.php
1<?php
2/**
3 * WordPress List utility class
4 *
5 * @package WordPress
6 * @since 4.7.0
7 */
8
9/**
10 * List utility.
11 *
12 * Utility class to handle operations on an array of objects or arrays.
13 *
14 * @since 4.7.0
15 */
16#[AllowDynamicProperties]
17class WP_List_Util {
18 /**
19 * The input array.
20 *
21 * @since 4.7.0
22 * @var array
23 */
24 private $input = array();
25
26 /**
27 * The output array.
28 *
29 * @since 4.7.0
30 * @var array
31 */
32 private $output = array();
33
34 /**
35 * Temporary arguments for sorting.
36 *
37 * @since 4.7.0
38 * @var string[]
39 */
40 private $orderby = array();
41
42 /**
43 * Constructor.
44 *
45 * Sets the input array.
46 *
47 * @since 4.7.0
48 *
49 * @param array $input Array to perform operations on.
50 */
51 public function __construct( $input ) {
52 $this->output = $input;
53 $this->input = $input;
54 }
55
56 /**
57 * Returns the original input array.
58 *
59 * @since 4.7.0
60 *
61 * @return array The input array.
62 */
63 public function get_input() {
64 return $this->input;
65 }
66
67 /**
68 * Returns the output array.
69 *
70 * @since 4.7.0
71 *
72 * @return array The output array.
73 */
74 public function get_output() {
75 return $this->output;
76 }
77
78 /**
79 * Filters the list, based on a set of key => value arguments.
80 *
81 * Retrieves the objects from the list that match the given arguments.
82 * Key represents property name, and value represents property value.
83 *
84 * If an object has more properties than those specified in arguments,
85 * that will not disqualify it. When using the 'AND' operator,
86 * any missing properties will disqualify it.
87 *
88 * @since 4.7.0
89 *
90 * @param array $args Optional. An array of key => value arguments to match
91 * against each object. Default empty array.
92 * @param string $operator Optional. The logical operation to perform. 'AND' means
93 * all elements from the array must match. 'OR' means only
94 * one element needs to match. 'NOT' means no elements may
95 * match. Default 'AND'.
96 * @return array Array of found values.
97 */
98 public function filter( $args = array(), $operator = 'AND' ) {
99 if ( empty( $args ) ) {
100 return $this->output;
101 }
102
103 $operator = strtoupper( $operator );
104
105 if ( ! in_array( $operator, array( 'AND', 'OR', 'NOT' ), true ) ) {
106 $this->output = array();
107 return $this->output;
108 }
109
110 $count = count( $args );
111 $filtered = array();
112
113 foreach ( $this->output as $key => $obj ) {
114 $matched = 0;
115
116 foreach ( $args as $m_key => $m_value ) {
117 if ( is_array( $obj ) ) {
118 // Treat object as an array.
119 if ( array_key_exists( $m_key, $obj ) && ( $m_value == $obj[ $m_key ] ) ) {
120 ++$matched;
121 }
122 } elseif ( is_object( $obj ) ) {
123 // Treat object as an object.
124 if ( isset( $obj->{$m_key} ) && ( $m_value == $obj->{$m_key} ) ) {
125 ++$matched;
126 }
127 }
128 }
129
130 if ( ( 'AND' === $operator && $matched === $count )
131 || ( 'OR' === $operator && $matched > 0 )
132 || ( 'NOT' === $operator && 0 === $matched )
133 ) {
134 $filtered[ $key ] = $obj;
135 }
136 }
137
138 $this->output = $filtered;
139
140 return $this->output;
141 }
142
143 /**
144 * Plucks a certain field out of each element in the input array.
145 *
146 * This has the same functionality and prototype of
147 * array_column() (PHP 5.5) but also supports objects.
148 *
149 * @since 4.7.0
150 *
151 * @param int|string $field Field to fetch from the object or array.
152 * @param int|string $index_key Optional. Field from the element to use as keys for the new array.
153 * Default null.
154 * @return array Array of found values. If `$index_key` is set, an array of found values with keys
155 * corresponding to `$index_key`. If `$index_key` is null, array keys from the original
156 * `$list` will be preserved in the results.
157 */
158 public function pluck( $field, $index_key = null ) {
159 $newlist = array();
160
161 if ( ! $index_key ) {
162 /*
163 * This is simple. Could at some point wrap array_column()
164 * if we knew we had an array of arrays.
165 */
166 foreach ( $this->output as $key => $value ) {
167 if ( is_object( $value ) ) {
168 $newlist[ $key ] = $value->$field;
169 } elseif ( is_array( $value ) ) {
170 $newlist[ $key ] = $value[ $field ];
171 } else {
172 _doing_it_wrong(
173 __METHOD__,
174 __( 'Values for the input array must be either objects or arrays.' ),
175 '6.2.0'
176 );
177 }
178 }
179
180 $this->output = $newlist;
181
182 return $this->output;
183 }
184
185 /*
186 * When index_key is not set for a particular item, push the value
187 * to the end of the stack. This is how array_column() behaves.
188 */
189 foreach ( $this->output as $value ) {
190 if ( is_object( $value ) ) {
191 if ( isset( $value->$index_key ) ) {
192 $newlist[ $value->$index_key ] = $value->$field;
193 } else {
194 $newlist[] = $value->$field;
195 }
196 } elseif ( is_array( $value ) ) {
197 if ( isset( $value[ $index_key ] ) ) {
198 $newlist[ $value[ $index_key ] ] = $value[ $field ];
199 } else {
200 $newlist[] = $value[ $field ];
201 }
202 } else {
203 _doing_it_wrong(
204 __METHOD__,
205 __( 'Values for the input array must be either objects or arrays.' ),
206 '6.2.0'
207 );
208 }
209 }
210
211 $this->output = $newlist;
212
213 return $this->output;
214 }
215
216 /**
217 * Sorts the input array based on one or more orderby arguments.
218 *
219 * @since 4.7.0
220 *
221 * @param string|array $orderby Optional. Either the field name to order by or an array
222 * of multiple orderby fields as `$orderby => $order`.
223 * Default empty array.
224 * @param string $order Optional. Either 'ASC' or 'DESC'. Only used if `$orderby`
225 * is a string. Default 'ASC'.
226 * @param bool $preserve_keys Optional. Whether to preserve keys. Default false.
227 * @return array The sorted array.
228 */
229 public function sort( $orderby = array(), $order = 'ASC', $preserve_keys = false ) {
230 if ( empty( $orderby ) ) {
231 return $this->output;
232 }
233
234 if ( is_string( $orderby ) ) {
235 $orderby = array( $orderby => $order );
236 }
237
238 foreach ( $orderby as $field => $direction ) {
239 $orderby[ $field ] = 'DESC' === strtoupper( $direction ) ? 'DESC' : 'ASC';
240 }
241
242 $this->orderby = $orderby;
243
244 if ( $preserve_keys ) {
245 uasort( $this->output, array( $this, 'sort_callback' ) );
246 } else {
247 usort( $this->output, array( $this, 'sort_callback' ) );
248 }
249
250 $this->orderby = array();
251
252 return $this->output;
253 }
254
255 /**
256 * Callback to sort an array by specific fields.
257 *
258 * @since 4.7.0
259 *
260 * @see WP_List_Util::sort()
261 *
262 * @param object|array $a One object to compare.
263 * @param object|array $b The other object to compare.
264 * @return int 0 if both objects equal. -1 if second object should come first, 1 otherwise.
265 */
266 private function sort_callback( $a, $b ) {
267 if ( empty( $this->orderby ) ) {
268 return 0;
269 }
270
271 $a = (array) $a;
272 $b = (array) $b;
273
274 foreach ( $this->orderby as $field => $direction ) {
275 if ( ! isset( $a[ $field ] ) || ! isset( $b[ $field ] ) ) {
276 continue;
277 }
278
279 if ( $a[ $field ] == $b[ $field ] ) {
280 continue;
281 }
282
283 $results = 'DESC' === $direction ? array( 1, -1 ) : array( -1, 1 );
284
285 if ( is_numeric( $a[ $field ] ) && is_numeric( $b[ $field ] ) ) {
286 return ( $a[ $field ] < $b[ $field ] ) ? $results[0] : $results[1];
287 }
288
289 return 0 > strcmp( $a[ $field ], $b[ $field ] ) ? $results[0] : $results[1];
290 }
291
292 return 0;
293 }
294}
295
Ui Ux Design – Teachers Night Out

Get in Touch

© 2024 Teachers Night Out. All Rights Reserved.