public function getRespondentOrganizations()
    {

        if (! $this->_hasVar('__allowedRespOrgs')) {
            $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents();
            $allowedOrganizations   = $this->getAllowedOrganizations();

            $this->_setVar('__allowedRespOrgs', array_intersect($availableOrganizations, $allowedOrganizations));
        }
        // \MUtil_Echo::track($this->_getVar('__allowedOrgs'));

        return $this->_getVar('__allowedRespOrgs');
    }
public function getRespondentOrganizations()
    {

        if (! $this->_hasVar('__allowedRespOrgs')) {
            $availableOrganizations = $this->util->getDbLookup()->getOrganizationsWithRespondents();
            $allowedOrganizations   = $this->getAllowedOrganizations();

            $this->_setVar('__allowedRespOrgs', array_intersect($availableOrganizations, $allowedOrganizations));
        }
        // \MUtil_Echo::track($this->_getVar('__allowedOrgs'));

        return $this->_getVar('__allowedRespOrgs');
    }
public function getRespondentOrganizations ( ) { if ( ! $ this -> _hasVar ( '__allowedRespOrgs' ) ) { $ availableOrganizations = $ this -> util -> getDbLookup ( ) -> getOrganizationsWithRespondents ( ) ; $ allowedOrganizations = $ this -> getAllowedOrganizations ( ) ; $ this -> _setVar ( '__allowedRespOrgs' , array_intersect ( $ availableOrganizations , $ allowedOrganizations ) ) ; } // \MUtil_Echo::track($this->_getVar('__allowedOrgs')); return $ this -> _getVar ( '__allowedRespOrgs' ) ; }
Get an array of OrgId => Org Name for all allowed organizations that can have
respondents for the current logged in user

@return array
Get an array of OrgId = > Org Name for all allowed organizations that can have respondents for the current logged in user