original_string: public function getAllSegmentsForAllUsers($idSite = false)
      {
          $bind = array();
          $sqlWhereCondition = '';
  
          if(!empty($idSite)) {
              $bind = array($idSite);
              $sqlWhereCondition = '(enable_only_idsite = ? OR enable_only_idsite = 0) AND';
          }
  
          $sqlWhereCondition  = $this->buildQuerySortedByName($sqlWhereCondition . ' deleted = 0');
          $segments = $this->getDb()->fetchAll($sqlWhereCondition, $bind);
  
          return $segments;
      }
code: public function getAllSegmentsForAllUsers($idSite = false)
      {
          $bind = array();
          $sqlWhereCondition = '';
  
          if(!empty($idSite)) {
              $bind = array($idSite);
              $sqlWhereCondition = '(enable_only_idsite = ? OR enable_only_idsite = 0) AND';
          }
  
          $sqlWhereCondition  = $this->buildQuerySortedByName($sqlWhereCondition . ' deleted = 0');
          $segments = $this->getDb()->fetchAll($sqlWhereCondition, $bind);
  
          return $segments;
      }
code_tokens: public function getAllSegmentsForAllUsers ( $ idSite = false ) { $ bind = array ( ) ; $ sqlWhereCondition = '' ; if ( ! empty ( $ idSite ) ) { $ bind = array ( $ idSite ) ; $ sqlWhereCondition = '(enable_only_idsite = ? OR enable_only_idsite = 0) AND' ; } $ sqlWhereCondition = $ this -> buildQuerySortedByName ( $ sqlWhereCondition . ' deleted = 0' ) ; $ segments = $ this -> getDb ( ) -> fetchAll ( $ sqlWhereCondition , $ bind ) ; return $ segments ; }
docstring: This should be used _only_ by Super Users
  @param $idSite
  @return array
docstring_tokens: This should be used _only_ by Super Users