public function getTokenCountUnanswered()
    {
        $tokenSelect = $this->tracker->getTokenSelect(new \Zend_Db_Expr('COUNT(*)'));
        $tokenSelect
                ->andReceptionCodes(array())
                ->andSurveys(array())
                ->andRounds(array())
                ->forRespondent($this->getRespondentId())
                ->forGroupId($this->getSurvey()->getGroupId())
                ->onlySucces()
                ->onlyValid()
                ->forWhere('gsu_active = 1')
                ->forWhere('gro_active = 1 OR gro_active IS NULL')
                ->withoutToken($this->_tokenId);

        $this->_addRelation($tokenSelect);

        return $tokenSelect->fetchOne();
    }
public function getTokenCountUnanswered()
    {
        $tokenSelect = $this->tracker->getTokenSelect(new \Zend_Db_Expr('COUNT(*)'));
        $tokenSelect
                ->andReceptionCodes(array())
                ->andSurveys(array())
                ->andRounds(array())
                ->forRespondent($this->getRespondentId())
                ->forGroupId($this->getSurvey()->getGroupId())
                ->onlySucces()
                ->onlyValid()
                ->forWhere('gsu_active = 1')
                ->forWhere('gro_active = 1 OR gro_active IS NULL')
                ->withoutToken($this->_tokenId);

        $this->_addRelation($tokenSelect);

        return $tokenSelect->fetchOne();
    }
public function getTokenCountUnanswered ( ) { $ tokenSelect = $ this -> tracker -> getTokenSelect ( new \ Zend_Db_Expr ( 'COUNT(*)' ) ) ; $ tokenSelect -> andReceptionCodes ( array ( ) ) -> andSurveys ( array ( ) ) -> andRounds ( array ( ) ) -> forRespondent ( $ this -> getRespondentId ( ) ) -> forGroupId ( $ this -> getSurvey ( ) -> getGroupId ( ) ) -> onlySucces ( ) -> onlyValid ( ) -> forWhere ( 'gsu_active = 1' ) -> forWhere ( 'gro_active = 1 OR gro_active IS NULL' ) -> withoutToken ( $ this -> _tokenId ) ; $ this -> _addRelation ( $ tokenSelect ) ; return $ tokenSelect -> fetchOne ( ) ; }
Returns the number of unanswered tokens for the person answering this token,
minus this token itself

@return int
Returns the number of unanswered tokens for the person answering this token minus this token itself