original_string: public function containsResourceIdentifier($resourceIdentifier)
      {
          // This will be very slow however the base implementation can do nothing else.
          // Inheritors of this class should override this if they can do this faster!
          $items = $this->getItems(0, false);
  
          foreach ($items[0] as $item) {
              if ($item->_id = $resourceIdentifier) {
                  return true;
              }
          }
  
          return false;
      }
code: public function containsResourceIdentifier($resourceIdentifier)
      {
          // This will be very slow however the base implementation can do nothing else.
          // Inheritors of this class should override this if they can do this faster!
          $items = $this->getItems(0, false);
  
          foreach ($items[0] as $item) {
              if ($item->_id = $resourceIdentifier) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public function containsResourceIdentifier ( $ resourceIdentifier ) { // This will be very slow however the base implementation can do nothing else. // Inheritors of this class should override this if they can do this faster! $ items = $ this -> getItems ( 0 , false ) ; foreach ( $ items [ 0 ] as $ item ) { if ( $ item -> _id = $ resourceIdentifier ) { return true ; } } return false ; }
docstring: Test to see if the given resource identifier exists in the collection of resources.
  
  @param $resourceIdentifier
  @return True if it exists, false if it does not.
docstring_tokens: Test to see if the given resource identifier exists in the collection of resources .