Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
compareTo (UuidInterface $other) | |
equals ($other) | |
getBytes () | |
getNumberConverter () | |
getHex () | |
getFieldsHex () | |
getClockSeqHiAndReservedHex () | |
getClockSeqLowHex () | |
getClockSequenceHex () | |
getDateTime () | |
getInteger () | |
getLeastSignificantBitsHex () | |
getMostSignificantBitsHex () | |
getNodeHex () | |
getTimeHiAndVersionHex () | |
getTimeLowHex () | |
getTimeMidHex () | |
getTimestampHex () | |
getUrn () | |
getVariant () | |
getVersion () | |
toString () | |
UuidInterface defines common functionality for all universally unique identifiers (UUIDs)
compareTo | ( | UuidInterface | $other | ) |
Compares this UUID to the specified UUID.
The first of two UUIDs is greater than the second if the most significant field in which the UUIDs differ is greater for the first UUID.
UuidInterface | $other | UUID to which this UUID is compared |
$uuid
Implémenté dans Uuid.
equals | ( | $other | ) |
Compares this object to the specified object.
The result is true if and only if the argument is not null, is a UUID object, has the same variant, and contains the same value, bit for bit, as this UUID.
object | $other |
$other
is equal to this UUID Implémenté dans Uuid.
getBytes | ( | ) |
Returns the UUID as a 16-byte string (containing the six integer fields in big-endian byte order).
Implémenté dans Uuid.
getClockSeqHiAndReservedHex | ( | ) |
Returns the high field of the clock sequence multiplexed with the variant (bits 65-72 of the UUID).
Implémenté dans Uuid.
getClockSeqLowHex | ( | ) |
Returns the low field of the clock sequence (bits 73-80 of the UUID).
Implémenté dans Uuid.
getClockSequenceHex | ( | ) |
Returns the clock sequence value associated with this UUID.
Implémenté dans Uuid.
getDateTime | ( | ) |
Returns a PHP DateTime
object representing the timestamp associated with this UUID.
The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException
.
UnsupportedOperationException | If this UUID is not a version 1 UUID |
UnsatisfiedDependencyException | if called in a 32-bit system and Moontoast\Math\BigNumber is not present |
Implémenté dans Uuid, et DegradedUuid.
getFieldsHex | ( | ) |
Returns an array of the fields of this UUID, with keys named according to the RFC 4122 names for the fields.
Implémenté dans Uuid.
Référencé par TimestampFirstCombCodec\encode(), GuidStringCodec\encode(), StringCodec\encode(), OrderedTimeCodec\encodeBinary(), et GuidStringCodec\encodeBinary().
getHex | ( | ) |
Returns the hexadecimal value of the UUID.
Implémenté dans Uuid.
Référencé par StringCodec\encodeBinary().
getInteger | ( | ) |
getLeastSignificantBitsHex | ( | ) |
Returns the least significant 64 bits of this UUID's 128 bit value.
Implémenté dans Uuid.
Référencé par Uuid\compareTo().
getMostSignificantBitsHex | ( | ) |
Returns the most significant 64 bits of this UUID's 128 bit value.
Implémenté dans Uuid.
Référencé par Uuid\compareTo().
getNodeHex | ( | ) |
Returns the node value associated with this UUID
For UUID version 1, the node field consists of an IEEE 802 MAC address, usually the host address. For systems with multiple IEEE 802 addresses, any available one can be used. The lowest addressed octet (octet number 10) contains the global/local bit and the unicast/multicast bit, and is the first octet of the address transmitted on an 802.3 LAN.
For systems with no IEEE address, a randomly or pseudo-randomly generated value may be used; see RFC 4122, Section 4.5. The multicast bit must be set in such addresses, in order that they will never conflict with addresses obtained from network cards.
For UUID version 3 or 5, the node field is a 48-bit value constructed from a name as described in RFC 4122, Section 4.3.
For UUID version 4, the node field is a randomly or pseudo-randomly generated 48-bit value as described in RFC 4122, Section 4.4.
Implémenté dans Uuid.
getNumberConverter | ( | ) |
Returns the number converter to use for converting hex values to/from integers.
Implémenté dans Uuid.
getTimeHiAndVersionHex | ( | ) |
Returns the high field of the timestamp multiplexed with the version number (bits 49-64 of the UUID).
Implémenté dans Uuid.
getTimeLowHex | ( | ) |
Returns the low field of the timestamp (the first 32 bits of the UUID).
Implémenté dans Uuid.
getTimeMidHex | ( | ) |
Returns the middle field of the timestamp (bits 33-48 of the UUID).
Implémenté dans Uuid.
getTimestampHex | ( | ) |
Returns the timestamp value associated with this UUID.
The 60 bit timestamp value is constructed from the time_low, time_mid, and time_hi fields of this UUID. The resulting timestamp is measured in 100-nanosecond units since midnight, October 15, 1582 UTC.
The timestamp value is only meaningful in a time-based UUID, which has version type 1. If this UUID is not a time-based UUID then this method throws UnsupportedOperationException.
UnsupportedOperationException | If this UUID is not a version 1 UUID http://tools.ietf.org/html/rfc4122#section-4.1.4 |
Implémenté dans Uuid.
getUrn | ( | ) |
Returns the string representation of the UUID as a URN.
Implémenté dans Uuid.
getVariant | ( | ) |
Returns the variant number associated with this UUID.
The variant number describes the layout of the UUID. The variant number has the following meaning:
Implémenté dans Uuid.
getVersion | ( | ) |
Returns the version number associated with this UUID.
The version number describes how this UUID was generated and has the following meaning:
Returns null if this UUID is not an RFC 4122 variant, since version is only meaningful for this variant.
Implémenté dans Uuid.
toString | ( | ) |