public function getFullDescription()
    {
        if ($this->_description) {
            return $this->_description;
        }

        $descr        = $this->getRoundDescription();
        $hasDescr     = strlen(trim($descr));
        $order        = $this->getRoundOrder();
        $survey       = $this->getSurvey();
        $surveyExists = $survey ? $survey->exists : false;

        if ($order) {
            if ($hasDescr) {
                if ($surveyExists) {
                    $this->_description = sprintf($this->_('%d: %s - %s'), $order, $descr, $survey->getName());
                } else {
                    $this->_description = sprintf($this->_('%d: %s'), $order, $descr);
                }
            } elseif ($surveyExists) {
                $this->_description = sprintf($this->_('%d: %s'), $order, $survey->getName());
            } else {
                $this->_description = $order;
            }
        } elseif ($hasDescr) {
            if ($surveyExists) {
                $this->_description = sprintf($this->_('%s - %s'), $descr, $survey->getName());
            } else {
                $this->_description = $descr;
            }
        } else {
            if ($surveyExists) {
                $this->_description = $survey->getName();
            } else {
                $this->_description = '';
            }
        }

        return $this->_description;
    }
public function getFullDescription()
    {
        if ($this->_description) {
            return $this->_description;
        }

        $descr        = $this->getRoundDescription();
        $hasDescr     = strlen(trim($descr));
        $order        = $this->getRoundOrder();
        $survey       = $this->getSurvey();
        $surveyExists = $survey ? $survey->exists : false;

        if ($order) {
            if ($hasDescr) {
                if ($surveyExists) {
                    $this->_description = sprintf($this->_('%d: %s - %s'), $order, $descr, $survey->getName());
                } else {
                    $this->_description = sprintf($this->_('%d: %s'), $order, $descr);
                }
            } elseif ($surveyExists) {
                $this->_description = sprintf($this->_('%d: %s'), $order, $survey->getName());
            } else {
                $this->_description = $order;
            }
        } elseif ($hasDescr) {
            if ($surveyExists) {
                $this->_description = sprintf($this->_('%s - %s'), $descr, $survey->getName());
            } else {
                $this->_description = $descr;
            }
        } else {
            if ($surveyExists) {
                $this->_description = $survey->getName();
            } else {
                $this->_description = '';
            }
        }

        return $this->_description;
    }
public function getFullDescription ( ) { if ( $ this -> _description ) { return $ this -> _description ; } $ descr = $ this -> getRoundDescription ( ) ; $ hasDescr = strlen ( trim ( $ descr ) ) ; $ order = $ this -> getRoundOrder ( ) ; $ survey = $ this -> getSurvey ( ) ; $ surveyExists = $ survey ? $ survey -> exists : false ; if ( $ order ) { if ( $ hasDescr ) { if ( $ surveyExists ) { $ this -> _description = sprintf ( $ this -> _ ( '%d: %s - %s' ) , $ order , $ descr , $ survey -> getName ( ) ) ; } else { $ this -> _description = sprintf ( $ this -> _ ( '%d: %s' ) , $ order , $ descr ) ; } } elseif ( $ surveyExists ) { $ this -> _description = sprintf ( $ this -> _ ( '%d: %s' ) , $ order , $ survey -> getName ( ) ) ; } else { $ this -> _description = $ order ; } } elseif ( $ hasDescr ) { if ( $ surveyExists ) { $ this -> _description = sprintf ( $ this -> _ ( '%s - %s' ) , $ descr , $ survey -> getName ( ) ) ; } else { $ this -> _description = $ descr ; } } else { if ( $ surveyExists ) { $ this -> _description = $ survey -> getName ( ) ; } else { $ this -> _description = '' ; } } return $ this -> _description ; }
Get a round description with order number and survey name

@return string
Get a round description with order number and survey name