예제 #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()));
 }
예제 #2
0
파일: ATextarea.php 프로젝트: kingsj/core
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     return parent::getCommonAttributes() + array(static::PARAM_ROWS => $this->getRows(), static::PARAM_COLS => $this->getCols());
 }
예제 #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;
 }
예제 #4
0
파일: AInput.php 프로젝트: kingsj/core
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     return parent::getCommonAttributes() + array('type' => $this->getFieldType(), 'value' => $this->getValue());
 }