public function getName($name, $field = null, $type = null)
    {
        return implode('_', array_filter(array($type, $field, $name)));
    }
public function getName($name, $field = null, $type = null)
    {
        return implode('_', array_filter(array($type, $field, $name)));
    }
public function getName ( $ name , $ field = null , $ type = null ) { return implode ( '_' , array_filter ( array ( $ type , $ field , $ name ) ) ) ; }
Get name for document field.

Consists of a name, and optionally field name and a content type name.

@param string $name
@param null|string $field
@param null|string $type

@return string
Get name for document field .