Example #1
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     if ($this->getParam(static::PARAM_PLACEHOLDER)) {
         $list['placeholder'] = $this->getParam(static::PARAM_PLACEHOLDER);
     }
     return array_merge($list, array('type' => $this->getFieldType(), 'value' => $this->getValue()));
 }
Example #2
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     return parent::getCommonAttributes() + array(static::PARAM_ROWS => $this->getRows(), static::PARAM_COLS => $this->getCols());
 }
Example #3
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     $list = parent::getCommonAttributes();
     if ($this->getParam(static::PARAM_MULTIPLE)) {
         $list['multiple'] = $this->getParam(static::PARAM_MULTIPLE);
     }
     $list['max_width'] = $this->getParam(static::PARAM_MAX_WIDTH);
     $list['max_height'] = $this->getParam(static::PARAM_MAX_HEIGHT);
     return $list;
 }
Example #4
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     return parent::getCommonAttributes() + array('type' => $this->getFieldType(), 'value' => $this->getValue());
 }