* @package tao */ abstract class tao_helpers_form_elements_Checkbox extends tao_helpers_form_elements_MultipleElement { public const WIDGET_ID = 'http://www.tao.lu/datatypes/WidgetDefinitions.rdf#CheckBox'; // --- ASSOCIATIONS --- // --- ATTRIBUTES --- /** * Store options that must be render as readonly * @var array */ protected $readOnly = []; // --- OPERATIONS --- /** * Short description of method getRawValue * * @access public * @author Jerome Bogaerts, * @return array */ public function getRawValue() { return $this->values; } /** * @return array */ protected function getReadOnly() { return $this->readOnly; } /** * Set the options to be readonly * * @param array $readOnly - the associative array [optionId => reason] of options to be disabled */ public function setReadOnly(array $readOnly) { $this->readOnly = $readOnly; } }