Smart.Framework Logo

final class \SmartDbaUtilDb
{ } ::

Class: SmartDbaUtilDb - provides a Static Utility for the DBA Database Client.


class Methods

public static function isDbaAndHandlerAvailable ( STRING $handler = "" ) {} :: BOOLEAN
@return: {BOOLEAN} Will return TRUE if DBA extension is available and the handler is available ; FALSE if not
@param: {STRING} $handler: *Optional* The handler to check ; leave it empty to check the handler from configs: dba.handler
Check if the DBA Extension is available with the given handler or if empty with the handler set in configs
public static function getDbaHandler ( ) {} :: STRING
@return: {STRING} The DBA Handler from configs, if available, or empty string if not
Get the current DBA Handler
public static function getDbaHandlers ( ) {} :: ARRAY
@return: {ARRAY} The array list of available handlers or empty array if DBA extension is not found
Get the list of available DBA Handlers
public static function dataPack ( MIXED $originalData ) {} :: STRING
@return: {STRING} the packed data
@param: {MIXED} $originalData: The data to be packed ; can be: string, array, number ...
Pack the data using a safe serialized format
public static function dataUnpack ( STRING $packedData ) {} :: MIXED
@return: {MIXED} the unpacked data ; can be: string, array, number ...
@param: {STRING} $packedData: The previous packed data
UnPack the data from packed serialized format to it's original state

class Properties


class Constants



documentation generated on: 2023-10-19 23:15:51 +0000


Smart.Framework © 2009-2023 unix-world.org