public function GetAttributes($blnIncludeCustom = true, $blnIncludeAction = true) { $strToReturn = parent::GetAttributes($blnIncludeCustom, $blnIncludeAction); if ($this->blnReadOnly) $strToReturn .= 'readonly="readonly" '; if ($this->strTextMode == QTextMode::MultiLine) { if ($this->intColumns) $strToReturn .= sprintf('cols="%s" ', $this->intColumns); if ($this->intRows) $strToReturn .= sprintf('rows="%s" ', $this->intRows); if (!$this->blnWrap) $strToReturn .= 'wrap="off" '; } else { if ($this->intColumns) $strToReturn .= sprintf('size="%s" ', $this->intColumns); if ($this->intMaxLength) $strToReturn .= sprintf('maxlength="%s" ', $this->intMaxLength); } return $strToReturn; }
public function GetAttributes($blnIncludeCustom = true, $blnIncludeAction = true) { $strToReturn = parent::GetAttributes(); if ($this->strTextMode == QFCKeditorTextMode::Plain) { if (!$this->blnWrap) { $strToReturn .= 'wrap="false" '; } if ($this->blnReadOnly) { $strToReturn .= 'readonly="readonly" '; } } return $strToReturn; }