/** * 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())); }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { return parent::getCommonAttributes() + array(static::PARAM_ROWS => $this->getRows(), static::PARAM_COLS => $this->getCols()); }
/** * 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; }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { return parent::getCommonAttributes() + array('type' => $this->getFieldType(), 'value' => $this->getValue()); }