XMF Cookbook
  • Introduction
  • XMF Cookbook
  • Basic Ingredients
    • Namespaces
    • Autoloading
    • Debugging
    • Forward Compatibility
  • Recipes
    • Introducing Module Helpers
    • Using the Permission Helper
      • Checking Permissions
      • Managing Item Permissions
    • Using the Session Helper
    • Using JSON Web Tokens
    • Altering Database Tables
    • Migrating a Module's Database
    • Loading Initial Data
    • Module Admin Pages
      • Hide and Seek with Icons
      • Standard Admin Pages
    • Manage Metadata
    • Highlighting Content
  • Reference
    • Assert
      • Assertions
    • Database
      • Migrate
      • TableLoad
      • Tables
        • Getting Started
        • Table Operations
        • Working with Columns
        • Working with Indexes
        • Changing Table Data
        • Interacting with the Work Queue
        • Error Info and Debugging
    • Debug
    • FilterInput
    • Highlighter
    • IPAddress
    • Jwt
      • JsonWebToken
      • KeyFactory
      • TokenFactory
      • TokenReader
    • Key
      • ArrayStorage
      • Basic
      • FileStorage
      • KeyAbstract
      • StorageInterface
    • Language
    • Metagen
      • Extracting Data
      • Applying Data
    • Module
      • Admin
      • Helper
      • Helper
        • AbstractHelper
        • Cache
        • GenericHelper
        • Permission
        • Session
    • ProxyCheck
    • Random
    • Request
    • StopWords
    • Uuid
    • Yaml
  • Credits
  • License:
  • Table of Content
Powered by GitBook
On this page
  • Uuid::generate()
  • Uuid::packAsBinary($uuid)
  • Uuid::unpackBinary($packedUuid)
  1. Reference

Uuid

PreviousStopWordsNextYaml

Last updated 5 years ago

Xmf\Uuid can be used to generate UUIDs (Universally Unique IDentifiers)

A is a 128-bit number that serves as a unique identifier.

Uuid::generate()

Returns a version 4 (random) UUID

Uuid::packAsBinary($uuid)

Returns a packed version of the supplied UUID. The return is a 16 byte binary string, a compact form that may be more suitable for database storage.

Uuid::unpackBinary($packedUuid)

Returns a full human readable UUID from the supplied packed form 16 byte binary string.

UUID