Overview

Namespaces

  • DedicatedApi
    • Structures
    • Xmlrpc
  • ManiaLib
    • Gui
      • Cards
        • Dialogs
        • Navigation
      • Elements
      • Layouts
      • Maniacode
        • Elements
    • Utils
  • ManiaLive
    • Application
    • Config
    • Data
    • Database
      • MySQL
      • SQLite
    • DedicatedApi
      • Callback
    • Event
    • Features
      • Admin
      • ChatCommand
      • Tick
      • WebServices
    • Gui
      • Controls
      • Elements
      • Windows
    • PluginHandler
    • Threading
    • Utilities
  • ManiaLiveApplication
  • Maniaplanet
    • WebServices
      • ManiaConnect
      • ManiaHome
      • Rankings
  • PHP

Classes

  • Config
  • Connection
  • RecordSet
  • Utils

Exceptions

  • ConnectionException
  • DisconnectionException
  • NotConnectedException
  • NotSupportedException
  • QueryException
  • SelectionException
  • Overview
  • Namespace
  • Class
  • Tree

Class Utils

Abstract
Namespace: ManiaLive\Database
Located at libraries/ManiaLive/Database/Utils.php
Methods summary
public static
# getLimitString( mixed $offset, mixed $length )

Returns the "LIMIT x OFFSET x" string depending on both values

Returns the "LIMIT x OFFSET x" string depending on both values

public static
# getValuesString( array $values )

Returns string like "(name1, name2) VALUES (value1, value2)"

Returns string like "(name1, name2) VALUES (value1, value2)"

public static
# getOnDuplicateKeyUpdateValuesString( array $valueNames )

Returns string like "name1=VALUES(name1), name2=VALUES(name2)"

Returns string like "name1=VALUES(name1), name2=VALUES(name2)"

ManiaLiveDoc API documentation generated by ApiGen 2.8.0