protected function generateId($uri)
    {
        $property = new \core_kernel_classes_Property($uri);
        $label = strtolower(trim($property->getLabel()));
        $label = preg_replace(array('/\s/', '[^a-z\-]'), array('-', ''), $label);
        return empty($label) ? 'key' : $label;
    }
protected function generateId($uri)
    {
        $property = new \core_kernel_classes_Property($uri);
        $label = strtolower(trim($property->getLabel()));
        $label = preg_replace(array('/\s/', '[^a-z\-]'), array('-', ''), $label);
        return empty($label) ? 'key' : $label;
    }
protected function generateId ( $ uri ) { $ property = new \ core_kernel_classes_Property ( $ uri ) ; $ label = strtolower ( trim ( $ property -> getLabel ( ) ) ) ; $ label = preg_replace ( array ( '/\s/' , '[^a-z\-]' ) , array ( '-' , '' ) , $ label ) ; return empty ( $ label ) ? 'key' : $ label ; }
Generate a key for the property to use during export

@param string $uri
@return string
Generate a key for the property to use during export