QControlBase::GetAttributes PHP Метод

GetAttributes() публичный Метод

(e.g. textbox will likely add the maxlength html attribute, etc.)
public GetAttributes ( $blnIncludeCustom = true, $blnIncludeAction = true )
    public function GetAttributes($blnIncludeCustom = true, $blnIncludeAction = true)
    {
        $strToReturn = "";
        if (!$this->blnEnabled) {
            $strToReturn .= 'disabled="disabled" ';
        }
        if ($this->intTabIndex) {
            $strToReturn .= sprintf('tabindex="%s" ', $this->intTabIndex);
        }
        if ($this->strToolTip) {
            $strToReturn .= sprintf('title="%s" ', QApplication::HtmlEntities($this->strToolTip));
        }
        if ($this->strCssClass) {
            $strToReturn .= sprintf('class="%s" ', $this->strCssClass);
        }
        if ($this->strAccessKey) {
            $strToReturn .= sprintf('accesskey="%s" ', $this->strAccessKey);
        }
        if ($blnIncludeCustom) {
            $strToReturn .= $this->GetCustomAttributes();
        }
        if ($blnIncludeAction) {
            $strToReturn .= $this->GetActionAttributes();
        }
        return $strToReturn;
    }