AdminPageFramework_Input_checkbox::get PHP Method

get() public method

public get ( )
    public function get()
    {
        $_aParams = func_get_args() + array(0 => '', 1 => array());
        $_sLabel = $_aParams[0];
        $_aAttributes = $this->uniteArrays($this->getElementAsArray($_aParams, 1, array()), $this->aAttributes);
        return "<{$this->aOptions['input_container_tag']} " . $this->getAttributes($this->aOptions['input_container_attributes']) . ">" . $this->_getInputElements($_aAttributes, $this->aOptions) . "</{$this->aOptions['input_container_tag']}>" . "<{$this->aOptions['label_container_tag']} " . $this->getAttributes($this->aOptions['label_container_attributes']) . ">" . $_sLabel . "</{$this->aOptions['label_container_tag']}>";
    }

Usage Example

 private function _getEachCheckboxOutput(array $aField, $sKey, $sLabel)
 {
     $_oCheckbox = new AdminPageFramework_Input_checkbox($aField['attributes']);
     $_oCheckbox->setAttributesByKey($sKey);
     $_oCheckbox->addClass($this->_sCheckboxClassSelector);
     return $this->getElement($aField, array('before_label', $sKey)) . "<div class='admin-page-framework-input-label-container admin-page-framework-checkbox-label' style='min-width: " . $this->sanitizeLength($aField['label_min_width']) . ";'>" . "<label " . $this->getAttributes(array('for' => $_oCheckbox->getAttribute('id'), 'class' => $_oCheckbox->getAttribute('disabled') ? 'disabled' : null)) . ">" . $this->getElement($aField, array('before_input', $sKey)) . $_oCheckbox->get($sLabel) . $this->getElement($aField, array('after_input', $sKey)) . "</label>" . "</div>" . $this->getElement($aField, array('after_label', $sKey));
 }
All Usage Examples Of AdminPageFramework_Input_checkbox::get