public function getSites($mustBeActive = false)
    {
        $repo = $this->_em
            ->getRepository(\Rcm\Entity\Site::class);
        if ($mustBeActive) {
            return $repo->findBy(['status' => \Rcm\Entity\Site::STATUS_ACTIVE]);
        } else {
            return $repo->findAll();
        }
    }
public function getSites($mustBeActive = false)
    {
        $repo = $this->_em
            ->getRepository(\Rcm\Entity\Site::class);
        if ($mustBeActive) {
            return $repo->findBy(['status' => \Rcm\Entity\Site::STATUS_ACTIVE]);
        } else {
            return $repo->findAll();
        }
    }
public function getSites ( $ mustBeActive = false ) { $ repo = $ this -> _em -> getRepository ( \ Rcm \ Entity \ Site :: class ) ; if ( $ mustBeActive ) { return $ repo -> findBy ( [ 'status' => \ Rcm \ Entity \ Site :: STATUS_ACTIVE ] ) ; } else { return $ repo -> findAll ( ) ; } }
Get All Active Site Objects

@param bool $mustBeActive

@return array array of site objects
Get All Active Site Objects