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;
		}
Ejemplo n.º 2
0
 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;
 }