AlkantarClanX12

Your IP : 216.73.217.24


Current Path : /www/capitalgmcbuickregina_830/public/wp-content/plugins/ninja-forms/includes/Handlers/
Upload File :
Current File : /www/capitalgmcbuickregina_830/public/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;
    }
}

Home - Capital GMC Buick Regina

No data

Welcome to Capital GMC BUICK – REGINA

Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.

Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.

But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.

Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!

Ask a Question