Uname:Linux hosting.cormo.systems 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 78.24.162.143  /  Your IP : 216.73.216.215
Web Server : Apache
System : Linux hosting.cormo.systems 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64
User : web63 ( 5058)
PHP Version : 7.4.33
Disable Function : create_functions,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client34/web63/web/wp-content/plugins/pods/src/Pods/API/Whatsit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client34/web63/web/wp-content/plugins/pods/src/Pods/API/Whatsit/Value_Field.php
<?php

namespace Pods\API\Whatsit;

use Pods\Whatsit;
use Pods\Whatsit\Field;
use Pods\Whatsit\Object_Field;

/**
 * Value_Field class.
 *
 * @property string $value Value of field.
 *
 * @since 2.8.0
 */
class Value_Field implements \ArrayAccess {

	/**
	 * Value of field.
	 *
	 * @var mixed
	 */
	protected $_value = null;

	/**
	 * The field object.
	 *
	 * @var Field|Object_Field
	 */
	protected $_field;

	/**
	 * Value_Field constructor.
	 *
	 * @param Whatsit $field The field object.
	 */
	public function __construct( Whatsit $field ) {
		$this->_field = $field;
	}

	/**
	 * Easy to reference init static function for array_map() to use.
	 *
	 * @param Whatsit $field The field object.
	 *
	 * @return Value_Field
	 */
	public static function init( Whatsit $field ) {
		return new static( $field );
	}

	/**
	 * On cast to string, return object identifier.
	 *
	 * @return string Object identifier.
	 *
	 * @uses Whatsit::__toString()
	 */
	public function __toString() {
		return $this->_field->get_identifier();
	}

	/**
	 * Check if offset exists.
	 *
	 * @param mixed $offset Offset name.
	 *
	 * @return bool Whether the offset exists.
	 */
	public function offsetExists( $offset ) {
		return $this->__isset( $offset );
	}

	/**
	 * Get offset value.
	 *
	 * @param mixed $offset Offset name.
	 *
	 * @return mixed|null Offset value, or null if not set.
	 */
	public function &offsetGet( $offset ) {
		// We fake the pass by reference to avoid PHP errors for backcompat.
		$value = $this->__get( $offset );

		return $value;
	}

	/**
	 * Set offset value.
	 *
	 * @param mixed $offset Offset name.
	 * @param mixed $value  Offset value.
	 */
	public function offsetSet( $offset, $value ) {
		if ( null === $offset ) {
			// Do not allow $object[] additions.
			return;
		}

		$this->__set( $offset, $value );
	}

	/**
	 * Unset offset value.
	 *
	 * @param mixed $offset Offset name.
	 */
	public function offsetUnset( $offset ) {
		$this->__unset( $offset );
	}

	/**
	 * Check if offset exists.
	 *
	 * @param mixed $offset Offset name.
	 *
	 * @return bool Whether the offset exists.
	 *
	 * @uses Whatsit::__isset()
	 */
	public function __isset( $offset ) {
		if ( 'value' === $offset ) {
			return isset( $this->_value );
		}

		return $this->_field->__isset( $offset );
	}

	/**
	 * Get offset value.
	 *
	 * @param mixed $offset Offset name.
	 *
	 * @return mixed|null Offset value, or null if not set.
	 *
	 * @uses Whatsit::__get()
	 */
	public function __get( $offset ) {
		if ( 'value' === $offset ) {
			return $this->_value;
		}

		return $this->_field->__get( $offset );
	}

	/**
	 * Set offset value.
	 *
	 * @param mixed $offset Offset name.
	 * @param mixed $value  Offset value.
	 *
	 * @uses Whatsit::__set()
	 */
	public function __set( $offset, $value ) {
		if ( 'value' === $offset ) {
			$this->_value = $value;

			return;
		}

		$this->_field->__set( $offset, $value );
	}

	/**
	 * Unset offset value.
	 *
	 * @param mixed $offset Offset name.
	 *
	 * @uses Whatsit::__unset()
	 */
	public function __unset( $offset ) {
		if ( 'value' === $offset ) {
			$this->_value = null;

			return;
		}

		$this->_field->__unset( $offset );
	}

	/**
	 * Call a method on the field.
	 *
	 * @param string $method    The method name.
	 * @param array  $arguments List of arguments.
	 *
	 * @return mixed The method response.
	 */
	public function __call( $method, $arguments ) {
		return call_user_func_array( [ $this->_field, $method ], $arguments );
	}

	/**
	 * Get the field object.
	 *
	 * @return Whatsit|Field|Object_Field The field object.
	 */
	public function get_field_object() {
		return $this->_field;
	}

	/**
	 * Get the field value.
	 *
	 * @return mixed The field value.
	 */
	public function get_field_value() {
		return $this->_value;
	}

	/**
	 * Set the field object.
	 *
	 * @param Whatsit|Field|Object_Field The field object.
	 */
	public function set_field_object( $field ) {
		$this->_field = $field;
	}

	/**
	 * Set the field value.
	 *
	 * @param mixed The field value.
	 */
	public function set_field_value( $value ) {
		$this->_value = $value;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit