Exemplo n.º 1
0
 /**
  *@desc XmlInputCheck constructor
  *@param string $caption
  *@param string $name
  *@param string $value
  */
 public function __construct($caption, $name, $value)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_value = $value;
     $this->_caption = $caption;
     $this->_checked = false;
     $this->_inputCheckType = InputCheckType::CHECKBOX;
     $this->_readonly = false;
 }
Exemplo n.º 2
0
 /**
  *@desc XmlInputMemo constructor
  *@param 
  */
 public function __construct($caption, $name, $value)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_value = $value;
     $this->_caption = $caption;
     $this->_cols = 50;
     $this->_rows = 10;
     $this->_maxLength = 0;
     $this->_wrap = "SOFT";
     // "OFF"
     $this->_readonly = false;
     $this->_visualEditor = false;
 }
Exemplo n.º 3
0
 /**
  * XmlEditList constructor
  *
  * @param EasyListType $listType
  * @param string $name
  * @param string $caption
  * @param array $iterator
  * @param string $selected
  * @param string $fieldKey
  * @param string $fieldValue
  */
 public function __construct($listType, $name, $caption, $iterator, $selected = null, $fieldKey = null, $fieldValue = null)
 {
     parent::__construct();
     $this->_name = $name;
     $this->_caption = $caption;
     $this->_values = $iterator;
     $this->_selected = $selected;
     $this->_easyListType = $listType;
     $this->_readOnly = false;
     $this->_size = 1;
     if (!is_array($iterator) && !$iterator instanceof IteratorInterface) {
         throw new InvalidArgumentException("I expected an Iterator or an Array");
     }
     if ($iterator instanceof IteratorInterface && (empty($fieldKey) || empty($fieldValue))) {
         throw new InvalidArgumentException("IteratorInterface object requires the parameters fieldKey and fieldValue");
     }
     if ($iterator instanceof IteratorInterface) {
         $this->_values = BaseDBAccess::getArrayFromIterator($iterator, $fieldKey, $fieldValue, "");
     }
 }