src/Library/Helper/Html.php
public static function getId($reference = null, $base_id = null)
    {
        if (empty($reference)) {
            $reference = uniqid();
        }
        if (isset(self::$dom_id_register[$reference])) {
            return self::$dom_id_register[$reference];
        }
        return self::getNewId($reference, $base_id);
    }
public static function getId($reference = null, $base_id = null)
    {
        if (empty($reference)) {
            $reference = uniqid();
        }
        if (isset(self::$dom_id_register[$reference])) {
            return self::$dom_id_register[$reference];
        }
        return self::getNewId($reference, $base_id);
    }
public static function getId ( $ reference = null , $ base_id = null ) { if ( empty ( $ reference ) ) { $ reference = uniqid ( ) ; } if ( isset ( self :: $ dom_id_register [ $ reference ] ) ) { return self :: $ dom_id_register [ $ reference ] ; } return self :: getNewId ( $ reference , $ base_id ) ; }
Get a DOM unique ID

@param   string      $reference  A reference used to store the ID (and retrieve it - by default, a uniqid)
@param   string|bool $base_id    A string that will be used to construct the ID, if set to `true`, the reference will be used as `$base_id`)
@return  string      The unique ID created or the existing one for the reference if so
Get a DOM unique ID