public function generateIdentifier( $id, $attributes = null )
    {
        $identifier = strtolower( $this->backendName )
            . $this->properties['location']
            . $id 
            . (
                ( $attributes !== null && !empty( $attributes ) ) 
                ? md5( serialize( $attributes ) ) 
                : ''
        );
        return urlencode( $identifier );
    }
public function generateIdentifier( $id, $attributes = null )
    {
        $identifier = strtolower( $this->backendName )
            . $this->properties['location']
            . $id 
            . (
                ( $attributes !== null && !empty( $attributes ) ) 
                ? md5( serialize( $attributes ) ) 
                : ''
        );
        return urlencode( $identifier );
    }
public function generateIdentifier ( $ id , $ attributes = null ) { $ identifier = strtolower ( $ this -> backendName ) . $ this -> properties [ 'location' ] . $ id . ( ( $ attributes !== null && ! empty ( $ attributes ) ) ? md5 ( serialize ( $ attributes ) ) : '' ) ; return urlencode ( $ identifier ) ; }
Generates the storage internal identifier from ID and attributes.

@param string $id The ID
@param array(string=>string) $attributes Attributes describing the data
@return string The generated identifier
Generates the storage internal identifier from ID and attributes .