original_string: public function getIdsNotMatchingTags($tags = array())
      {
          $res = $this->_query("SELECT id FROM cache");
          $rows = @sqlite_fetch_all($res, SQLITE_ASSOC);
          $result = array();
          foreach ($rows as $row) {
              $id = $row['id'];
              $matching = false;
              foreach ($tags as $tag) {
                  $res = $this->_query("SELECT COUNT(*) AS nbr FROM tag WHERE name='$tag' AND id='$id'");
                  if (!$res) {
                      return array();
                  }
                  $nbr = (int) @sqlite_fetch_single($res);
                  if ($nbr > 0) {
                      $matching = true;
                  }
              }
              if (!$matching) {
                  $result[] = $id;
              }
          }
          return $result;
      }
code: public function getIdsNotMatchingTags($tags = array())
      {
          $res = $this->_query("SELECT id FROM cache");
          $rows = @sqlite_fetch_all($res, SQLITE_ASSOC);
          $result = array();
          foreach ($rows as $row) {
              $id = $row['id'];
              $matching = false;
              foreach ($tags as $tag) {
                  $res = $this->_query("SELECT COUNT(*) AS nbr FROM tag WHERE name='$tag' AND id='$id'");
                  if (!$res) {
                      return array();
                  }
                  $nbr = (int) @sqlite_fetch_single($res);
                  if ($nbr > 0) {
                      $matching = true;
                  }
              }
              if (!$matching) {
                  $result[] = $id;
              }
          }
          return $result;
      }
code_tokens: public function getIdsNotMatchingTags ( $ tags = array ( ) ) { $ res = $ this -> _query ( "SELECT id FROM cache" ) ; $ rows = @ sqlite_fetch_all ( $ res , SQLITE_ASSOC ) ; $ result = array ( ) ; foreach ( $ rows as $ row ) { $ id = $ row [ 'id' ] ; $ matching = false ; foreach ( $ tags as $ tag ) { $ res = $ this -> _query ( "SELECT COUNT(*) AS nbr FROM tag WHERE name='$tag' AND id='$id'" ) ; if ( ! $ res ) { return array ( ) ; } $ nbr = ( int ) @ sqlite_fetch_single ( $ res ) ; if ( $ nbr > 0 ) { $ matching = true ; } } if ( ! $ matching ) { $ result [ ] = $ id ; } } return $ result ; }
docstring: Return an array of stored cache ids which don't match given tags
  
  In case of multiple tags, a logical OR is made between tags
  
  @param array $tags array of tags
  @return array array of not matching cache ids (string)
docstring_tokens: Return an array of stored cache ids which don t match given tags