protected function assignIdsFromUri($entries) {
        foreach ($entries as &$entry) {
            $entry['id'] = (int) preg_replace('#.*?(\d+)$#', '$1', $entry['uri']);
        }

        return $entries;
    }
protected function assignIdsFromUri($entries) {
        foreach ($entries as &$entry) {
            $entry['id'] = (int) preg_replace('#.*?(\d+)$#', '$1', $entry['uri']);
        }

        return $entries;
    }
protected function assignIdsFromUri ( $ entries ) { foreach ( $ entries as & $ entry ) { $ entry [ 'id' ] = ( int ) preg_replace ( '#.*?(\d+)$#' , '$1' , $ entry [ 'uri' ] ) ; } return $ entries ; }
Loops through a set of entries, assigning them IDs based on the item URI

@param  array $entries Entries to assign IDs for
@return array
Loops through a set of entries assigning them IDs based on the item URI