예제 #1
0
 public function readMetaData(&$xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->m_cssClass = isset($xmlArr["ATTRIBUTES"]["CSSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSCLASS"] : "input_text";
     $this->m_cssErrorClass = isset($xmlArr["ATTRIBUTES"]["CSSERRORCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSERRORCLASS"] : $this->m_cssClass . "_error";
     $this->m_cssFocusClass = isset($xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"] : $this->m_cssClass . "_focus";
 }
예제 #2
0
 /**
  * Read metadata info from metadata array and store to class variable
  *
  * @param array $xmlArr metadata array
  * @return void
  */
 protected function readMetaData($xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->m_Sortable = isset($xmlArr["ATTRIBUTES"]["SORTABLE"]) ? $xmlArr["ATTRIBUTES"]["SORTABLE"] : null;
     $this->m_Link = isset($xmlArr["ATTRIBUTES"]["LINK"]) ? $xmlArr["ATTRIBUTES"]["LINK"] : null;
     $this->m_ColumnStyle = $this->m_Style;
 }
예제 #3
0
 protected function readMetaData(&$xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->m_BlankOption = isset($xmlArr["ATTRIBUTES"]["BLANKOPTION"]) ? $xmlArr["ATTRIBUTES"]["BLANKOPTION"] : null;
     $this->m_cssClass = isset($xmlArr["ATTRIBUTES"]["CSSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSCLASS"] : 'image_selector';
     $this->m_cssErrorClass = isset($xmlArr["ATTRIBUTES"]["CSSERRORCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSERRORCLASS"] : $this->m_cssClass . "_error";
     $this->m_cssFocusClass = isset($xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"] : $this->m_cssClass . "_focus";
 }
예제 #4
0
파일: Textarea.php 프로젝트: que273/siremis
 public function readMetaData(&$xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->m_cssClass = isset($xmlArr["ATTRIBUTES"]["CSSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSCLASS"] : "input_textarea";
     $this->m_cssErrorClass = isset($xmlArr["ATTRIBUTES"]["CSSERRORCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSERRORCLASS"] : "input_textarea_error";
     $this->m_cssFocusClass = isset($xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"]) ? $xmlArr["ATTRIBUTES"]["CSSFOCUSCLASS"] : "input_textarea_focus";
     $this->m_BlankOption = isset($xmlArr["ATTRIBUTES"]["BLANKOPTION"]) ? $xmlArr["ATTRIBUTES"]["BLANKOPTION"] : null;
 }
예제 #5
0
 /**
  * __construct
  *
  * @param mixed   $caption Caption or array of all attributes
  *                          Control attributes:
  *                              :inline true to render with inline style
  * @param string  $name    name attribute
  * @param string  $value   Pre-selected value
  * @param boolean $inline  true to display inline
  */
 public function __construct($caption, $name = null, $value = null, $inline = true)
 {
     if (is_array($caption)) {
         parent::__construct($caption);
     } else {
         parent::__construct([]);
         $this->setWithDefaults('caption', $caption, '');
         $this->setWithDefaults('name', $name, 'name_error');
         $this->set('value', $value);
         if ($inline) {
             $this->set(':inline');
         }
     }
     $this->set('type', 'radio');
 }
예제 #6
0
 /**
  * Constructor
  *
  * @param string|array $caption  Caption or array of all attributes
  * @param string       $name     name" attribute
  * @param mixed        $value    Pre-selected value (or array of them).
  * @param integer      $size     Number or rows. "1" makes a drop-down-list
  * @param boolean      $multiple Allow multiple selections?
  */
 public function __construct($caption, $name = null, $value = null, $size = 1, $multiple = false)
 {
     if (is_array($caption)) {
         parent::__construct($caption);
         $this->setIfNotSet('size', 1);
     } else {
         $this->setWithDefaults('caption', $caption, '');
         $this->setWithDefaults('name', $name, 'name_error');
         $this->set('value', $value);
         $this->setWithDefaults('size', $size, 1);
         if ($multiple) {
             $this->set('multiple');
         }
     }
 }
예제 #7
0
 /**
  * Read array meta data, and store to meta object
  *
  * @param array $xmlArr
  * @return void
  */
 protected function readMetaData(&$xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->m_BlankOption = isset($xmlArr["ATTRIBUTES"]["BLANKOPTION"]) ? $xmlArr["ATTRIBUTES"]["BLANKOPTION"] : null;
 }