GRAYBYTE WORDPRESS FILE MANAGER3162

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Handlers/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Handlers//Field.php
<?php

namespace NinjaForms\Includes\Handlers;

use NinjaForms\Includes\Contracts\Field as ContractsField;

/**
 * Honor Field contract providing NF Field object methods
 *
 * Provides functionality normally handled by the field object created by
 * \Ninja_Forms()->form()->get_field( $fieldId )
 * 
 * 
 */
class Field implements ContractsField
{

    /**
     * Field Id
     *
     * @var int
     */
    protected $id = 0;

    /**
     * Field type
     *
     * @var string
     */
    protected $type = '';

    /**
     * Field settings
     *
     * @var array
     */
    protected $settings = [];

    /**
     * @inheritDoc
     */
    public function get_id(): int
    {
        return $this->id;
    }

    /** @inheritDoc */
    public function get_tmp_id()
    {
        return null;
    }


    /** @inheritDoc */
    public function get_type(): string
    {
        return $this->type;
    }

    /** @inheritDoc */
    public function get_setting($setting, $default = FALSE)
    {
        if (isset($this->settings[$setting])) {
            $return = $this->settings[$setting];
        } else {
            $return = $default;
        }

        return $return;
    }

    /** @inheritDoc */
    public function get_settings(): array
    {
        return $this->settings;
    }

    /** @inheritDoc */
    public function update_setting($key, $value): Field
    {
        return $this;
    }

    /** @inheritDoc */
    public function update_settings($data): Field
    {
        return $this;
    }

    /** @inheritDoc */
    public function delete()
    {
        return $this;
    }
    /** @inheritDoc */
    public function find($parent_id = '', array $where = array()): array
    {
        return [];
    }

    /** @inheritDoc */
    public function get_object_settings($obj_array): array
    {
        return [];
    }

    /** @inheritDoc */
    public function save()
    {
    }

    /** @inheritDoc */
    public function _insert_row($data = array()): void
    {
    }

    /** @inheritDoc */
    public function cache($cache = ''): Field
    {
        return $this;
    }

    /** @inheritDoc */
    public function add_parent($parent_id, $parent_type): Field
    {
        return $this;
    }

    /** @inheritDoc */
    public static function import(array $settings, $field_id = '', $is_conversion = FALSE): void
    {
    }

    /**
     * Construct entity from associative array
     *
     * @param array $items
     * @return Field
     */
    public static function fromArray(array $items): Field
    {
        $obj = new static();

        foreach ($items as $property => $value) {

            $obj = $obj->__set($property, $value);
        }

        return $obj;
    }

    /**
     * Magic method getter for properties
     *
     * @param string $name
     * @return void
     */
    public function __get($name)
    {
        $getter = 'get' . ucfirst($name);
        if (method_exists($this, $getter)) {
            return call_user_func([$this, $getter]);
        }
        if (property_exists($this, $name)) {
            return $this->$name;
        }

        if (isset($this->$name)) {
            return $this->$name;
        }
    }

    /**
     * Magic method setter for properties
     *
     *
     * @param string $name
     * @param mixed $value
     */
    public function __set(string $name, $value)
    {
        $setter = 'set' . ucfirst($name);
        if (method_exists($this, $setter)) {
            try {
                return call_user_func([$this, $setter], $value);
            } catch (\TypeError $e) {
                // Do not set invalid type
                return $this;
            }
        }

        if (property_exists($this, $name)) {
            $this->$name = $value;
            return $this;
        }

        return $this;
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
giriqfky / giriqfky
0644
DateTimeConverter.php
3.168 KB
February 09 2023 21:52:18
giriqfky / giriqfky
0644
Field.php
3.732 KB
March 17 2022 12:30:18
giriqfky / giriqfky
0644
FieldsetRepeater.php
15.445 KB
April 26 2023 20:57:02
giriqfky / giriqfky
0644
LocaleNumberFormatting.php
4.342 KB
April 03 2019 19:43:14
giriqfky / giriqfky
0644
Sanitizer.php
1.029 KB
October 11 2023 20:27:36
giriqfky / giriqfky
0644
SubmissionAggregate.php
12.995 KB
April 12 2023 22:02:08
giriqfky / giriqfky
0644
SubmissionAggregateCsvExportAdapter.php
15.498 KB
February 12 2024 22:23:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF