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
  • executeQueue($force)
  • resetQueue()
  • addToQueue($sql)
  1. Reference
  2. Database
  3. Tables

Interacting with the Work Queue

PreviousChanging Table DataNextError Info and Debugging

Last updated 6 years ago

executeQueue($force)

Executes the current work queue. If $force is specified as true, the changes specified in the queue will be processed even if the current request should be considered or safe, such as a HTTP 'GET'.

Returns true on success, or false on error. Additional information may be available using getLastError() and getLastErrNo().

resetQueue()

Clears the work queue without processing.

addToQueue($sql)

Adds an SQL/DDL statement to the work queue. This can be useful in special circumstances. Be aware that no processing is performed on the SQL -- it is used as supplied. No attempt is made to insure portability or compatibility among different database platforms.

idempotent