/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
the-events-calendar
/
common
/
src
/
Tribe
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/the-events-calendar/common/src/Tribe
mkdir
upload
Name
Size
Mode
Actions
Admin/
-
0755
rm
Ajax/
-
0755
rm
Asset/
-
0755
rm
Context/
-
0755
rm
Customizer/
-
0755
rm
Debug_Bar/
-
0755
rm
Dialog/
-
0755
rm
Documentation/
-
0755
rm
Duplicate/
-
0755
rm
Editor/
-
0755
rm
Image/
-
0755
rm
JSON_LD/
-
0755
rm
Languages/
-
0755
rm
Log/
-
0755
rm
Meta/
-
0755
rm
Models/
-
0755
rm
Onboarding/
-
0755
rm
Process/
-
0755
rm
Promoter/
-
0755
rm
PUE/
-
0755
rm
Repository/
-
0755
rm
REST/
-
0755
rm
Service_Providers/
-
0755
rm
Shortcode/
-
0755
rm
Support/
-
0755
rm
Tabbed_View/
-
0755
rm
Tooltip/
-
0755
rm
Traits/
-
0755
rm
Utils/
-
0755
rm
Validator/
-
0755
rm
Values/
-
0755
rm
Widget/
-
0755
rm
Abstract_Deactivation.php
1685
0644
edit
dl
rm
Abstract_Plugin_Register.php
1285
0644
edit
dl
rm
App_Shop.php
10107
0644
edit
dl
rm
Assets.php
25236
0644
edit
dl
rm
Assets_Pipeline.php
1739
0644
edit
dl
rm
Autoloader.php
8511
0644
edit
dl
rm
Cache.php
18971
0644
edit
dl
rm
Cache_Listener.php
6066
0644
edit
dl
rm
Changelog_Reader.php
1537
0644
edit
dl
rm
Container.php
11635
0644
edit
dl
rm
Context.php
49818
0644
edit
dl
rm
Cost_Utils.php
16832
0644
edit
dl
rm
Credits.php
2972
0644
edit
dl
rm
Customizer.php
29035
0644
edit
dl
rm
Data.php
5333
0644
edit
dl
rm
Date_Utils.php
50037
0644
edit
dl
rm
Db.php
876
0644
edit
dl
rm
DB_Lock.php
10278
0644
edit
dl
rm
Debug.php
1582
0644
edit
dl
rm
Dependency.php
16861
0644
edit
dl
rm
Deprecation.php
4957
0644
edit
dl
rm
Editor.php
7926
0644
edit
dl
rm
Error.php
4622
0644
edit
dl
rm
Exception.php
2133
0644
edit
dl
rm
Extension.php
13308
0644
edit
dl
rm
Extension_Loader.php
4052
0644
edit
dl
rm
Feature_Detection.php
7688
0644
edit
dl
rm
Field.php
22913
0644
edit
dl
rm
Field_Conditional.php
2422
0644
edit
dl
rm
Freemius.php
1371
0644
edit
dl
rm
Log.php
11606
0644
edit
dl
rm
Main.php
24948
0644
edit
dl
rm
Notices.php
1530
0644
edit
dl
rm
Plugins.php
5444
0644
edit
dl
rm
Plugins_API.php
12490
0644
edit
dl
rm
Plugin_Meta_Links.php
3532
0644
edit
dl
rm
Post_History.php
3028
0644
edit
dl
rm
Post_Transient.php
5894
0644
edit
dl
rm
Promise.php
9256
0644
edit
dl
rm
Repository.php
103346
0644
edit
dl
rm
Rewrite.php
35456
0644
edit
dl
rm
Settings.php
24382
0644
edit
dl
rm
Settings_Manager.php
10445
0644
edit
dl
rm
Settings_Tab.php
7101
0644
edit
dl
rm
Simple_Table.php
4106
0644
edit
dl
rm
Support.php
15279
0644
edit
dl
rm
Tabbed_View.php
8297
0644
edit
dl
rm
Template.php
45266
0644
edit
dl
rm
Templates.php
1833
0644
edit
dl
rm
Template_Factory.php
5582
0644
edit
dl
rm
Template_Part_Cache.php
2805
0644
edit
dl
rm
Terms.php
1546
0644
edit
dl
rm
Timezones.php
18921
0644
edit
dl
rm
Tracker.php
12808
0644
edit
dl
rm
Updater.php
3871
0644
edit
dl
rm
Validate.php
16939
0644
edit
dl
rm
View_Helpers.php
9869
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/the-events-calendar/common/src/Tribe/Data.php
(5333B)
<?php /** * Class Tribe__Data * * A value object implementing the ArrayAccess interface. * * Example usage: * $my_data = array( 'lorem' => 'dolor' ); * * // by default return 'nope' when a value is not set in the data * $data = new Tribe__Data( $my_data, 'nope' ); * * // set some values in the data * $data['foo'] = 'bar'; * $data['bar'] = 23; * * // fetch some values * $var_1 = $data['foo']; // "bar" * $var_2 = $data['bar']; // 23 * $var_3 = $data['lorem']; // "dolor" * $var_4 = $data['woo']; // "nope" * * $data->set_default( 'not found' ); * * $var_4 = $data['woo']; // "not found" * */ class Tribe__Data implements ArrayAccess, Iterator { /** * @var int */ protected $index = 0; /** * @var array The data managed by this object. */ protected $data; /** * @var mixed The default value that will be returned when trying to get the value * of a non set key. */ protected $default; /** * Tribe__Data constructor. * * @param array|object $data An array or object of data. * @param mixed $default The default value that should be returned if a key is not set */ public function __construct( $data = [], $default = false ) { $this->data = (array) $data; $this->default = $default; } /** * Whether a offset exists * * @link http://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset <p> * An offset to check for. * </p> * @return boolean true on success or false on failure. * </p> * <p> * The return value will be casted to boolean if non-boolean was returned. * @since 4.11.0 */ public function offsetExists( $offset ) { return isset( $this->data[ $offset ] ); } /** * Offset to retrieve * * @link http://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset <p> * The offset to retrieve. * </p> * @return mixed Can return all value types. * @since 4.11.0 */ public function offsetGet( $offset ) { return isset( $this->data[ $offset ] ) ? $this->data[ $offset ] : $this->default; } /** * Offset to set * * @link http://php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset <p> * The offset to assign the value to. * </p> * @param mixed $value <p> * The value to set. * </p> * @return void * @since 4.11.0 */ public function offsetSet( $offset, $value ) { $this->data[ $offset ] = $value; } /** * Offset to unset * * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset <p> * The offset to unset. * </p> * @return void * @since 4.11.0 */ public function offsetUnset( $offset ) { unset( $this->data[ $offset ] ); } /** * Gets the data this object manages. * * @return array */ public function get_data() { return $this->data; } /** * Sets the data this object will manage. * * @param array $data */ public function set_data( array $data ) { $this->data = $data; } /** * Gets the default value that will be returned when a key is not set. * * @return mixed */ public function get_default() { return $this->default; } /** * Sets the default value that should be returned when a key is not set. * * @param mixed $default */ public function set_default( $default ) { $this->default = $default; } /** * Return the current element * * @link http://php.net/manual/en/iterator.current.php * @return mixed Can return any type. * @since 4.11.0 */ public function current() { $keys = array_keys( $this->data ); return $this->data[ $keys[ $this->index ] ]; } /** * Move forward to next element * * @link http://php.net/manual/en/iterator.next.php * @return void Any returned value is ignored. * @since 4.11.0 */ public function next() { $keys = array_keys( $this->data ); if ( isset( $keys[ ++ $this->index ] ) ) { return $this->data[ $keys[ $this->index ] ]; } return false; } /** * Return the key of the current element * * @link http://php.net/manual/en/iterator.key.php * @return mixed scalar on success, or null on failure. * @since 4.11.0 */ public function key() { $keys = array_keys( $this->data ); return $keys[ $this->index ]; } /** * Checks if current position is valid * * @link http://php.net/manual/en/iterator.valid.php * @return boolean The return value will be casted to boolean and then evaluated. * Returns true on success or false on failure. * @since 4.11.0 */ public function valid() { $keys = array_keys( $this->data ); return isset( $keys[ $this->index ] ); } /** * Rewind the Iterator to the first element * * @link http://php.net/manual/en/iterator.rewind.php * @return void Any returned value is ignored. * @since 4.11.0 */ public function rewind() { $this->index = 0; } /** * Converts the data object in an array. * * @return array * * @since 4.6 */ public function to_array() { return $this->get_data(); } }
Save
cmd:
run