UNA
BxDolAclQuery Class Reference
Inheritance diagram for BxDolAclQuery:
BxDolDb iBxDolSingleton BxDolFactory iBxDolSingleton BxDolStudioPermissionsQuery

Public Member Functions

 __clone ()
 
 getLevelCurrent ($iProfileId, $iTime=0)
 
- Public Member Functions inherited from BxDolDb
 __clone ()
 
 connect ()
 
 disconnect ()
 
 ping ()
 
 pdoExec ($sQuery)
 
 pdoQuery ($sQuery)
 
 pdoExceptionHandler ($oException)
 
 getOption ($sName)
 
 getOne ($oStatement, $aBindings=array(), $iIndex=0)
 
 getRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getColumn ($oStatement, $aBindings=array(), $iFetchColumnNumber=0)
 
 getFirstRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getNextRow ($iFetchType=PDO::FETCH_ASSOC)
 
 getAll ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 fillArray ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getAllWithKey ($oStatement, $sFieldKey, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getPairs ($oStatement, $sFieldKey, $sFieldValue, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getNumRows ($oStatement=null)
 
 getAffectedRows ($oStatement=null)
 
 query ($oStatement, $aBindings=array(), $bVerbose=null)
 
 res ($oStatement, $aBindings=array(), $bVerbose=null)
 
 getServerInfo ()
 
 getVersion ()
 
 listTables ()
 
 getDbCacheObject ()
 
 escape ($s)
 
 implode_escape ($mixed)
 
 unescape ($mixed)
 
 prepare ($sQuery)
 
 prepareAsString ($sQuery)
 
 arrayToSQL ($a, $sDiv=',', $sOperator='=', $bWildcardSpaceChars=false)
 

Static Public Member Functions

static getInstance ()
 
- Static Public Member Functions inherited from BxDolDb
static getInstance ()
 

Additional Inherited Members

- Protected Member Functions inherited from BxDolDb
 __construct ($aDbConf=false)
 

Detailed Description

Database queries for ACL

See also
BxDolAcl

Member Function Documentation

◆ __clone()

BxDolAclQuery::__clone ( )

Prevent cloning the instance

◆ getInstance()

static BxDolAclQuery::getInstance ( )
static

Get singleton instance of the class

Implements iBxDolSingleton.

◆ getLevelCurrent()

BxDolAclQuery::getLevelCurrent (   $iProfileId,
  $iTime = 0 
)

Fetch the last purchased/assigned membership that is still active for the given profile.

NOTE. Don't use cache here, because it's causing an error, if a number of memberrship levels are purchased at the same time. fromMemory returns the same DateExpires because setMembership (old buyMembership) function is called in cycle in the same session.


The documentation for this class was generated from the following file: