QControlBase::RenderWithError PHP Метод

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

public RenderWithError ( $blnDisplayOutput = true )
    public function RenderWithError($blnDisplayOutput = true)
    {
        // Call RenderHelper
        $this->RenderHelper(func_get_args(), __FUNCTION__);
        try {
            $strOutput = $this->GetControlHtml();
            if ($this->strValidationError) {
                $strOutput .= sprintf('<br /><span class="warning">%s</span>', $this->strValidationError);
            } else {
                if ($this->strWarning) {
                    $strOutput .= sprintf('<br /><span class="warning">%s</span>', $this->strWarning);
                }
            }
        } catch (QCallerException $objExc) {
            $objExc->IncrementOffset();
            throw $objExc;
        }
        // Call RenderOutput, Returning its Contents
        return $this->RenderOutput($strOutput, $blnDisplayOutput);
    }