Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 926 Bytes

XoopsGroupFormCheckBox.md

File metadata and controls

49 lines (42 loc) · 926 Bytes

XoopsGroupFormCheckBox

XoopsGroupFormCheckBox renders checkbox options for a group permission form

Definition

class XoopsGroupFormCheckBox extends XoopsFormElement
{
    /**
     * Pre-selected value(s)
     *
     * @var array ;
     */
    public $_value = array();
    /**
     * Group ID
     *
     * @var int
     */
    public $_groupId;
    /**
     * Option tree
     *
     * @var array
     */
    public $_optionTree = array();

    /**
     * Constructor
     * @param      $caption
     * @param      $name
     * @param      $groupId
     * @param null $values
     */
    public function __construct($caption, $name, $groupId, $values = null)
    {
        $this->setCaption($caption);
        $this->setName($name);
        if (isset($values)) {
            $this->setValue($values);
        }
        $this->_groupId = $groupId;
    }