403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.116.237.222
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/task/7779/cwd/plugins/give/src/Framework/FieldsAPI/LegacyNodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/plugins/give/src/Framework/FieldsAPI/LegacyNodes/CheckboxGroup.php
<?php

namespace Give\Framework\FieldsAPI\LegacyNodes;

use Give\Framework\FieldsAPI\Concerns;
use Give\Framework\FieldsAPI\Field;

/**
 * This class is a legacy node for the old Form Field Manager Checkbox field. It should not be used in any other context
 * and will be eventually be removed.
 *
 * @since 2.28.0 Moved here to discourage future use
 * @since 2.12.0
 */
class CheckboxGroup extends Field
{
    use Concerns\HasEmailTag;
    use Concerns\HasHelpText;
    use Concerns\HasLabel;
    use Concerns\HasOptions;
    use Concerns\HasPlaceholder;

    const TYPE = 'legacy-checkbox-group';

    /**
     * Helper for marking the checkbox as checked by default
     *
     * @since 2.12.0
     *
     * @param bool|callable $isChecked
     *
     * @return $this
     */
    public function checked($isChecked = true)
    {
        $default = is_callable($isChecked) ? $isChecked() : $isChecked;
        $this->defaultValue((bool)$default);

        return $this;
    }

    /**
     * Returns whether the checkbox is checked by default
     *
     * @since 2.12.0
     *
     * @return bool
     */
    public function isChecked()
    {
        return (bool)$this->defaultValue;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit