Class OCSP_SHELLUSER

Description

openCSP class OCSP_SHELLUSER

user running a script from the shell this user is assumed to be admin

Located in /user/OCSP_SHELLUSER.phpclass (line 36)

OCSP_OBJ
   |
   --DBMS_TABLEOBJ
      |
      --OCSP_USER
         |
         --OCSP_SHELLUSER
Class Constant Summary
 CLASS_SRC_FILE = __FILE__
Method Summary
 static void setCurrent ( &$aUser)
 OCSP_SHELLUSER __construct ()
 boolean isAdmin ([boolean $debug = False])
 boolean isAllowed ([array $addSecReq = NULL], [ $debug = False])
 boolean isEnabled ([$debug $debug = False])
 boolean isPublic ([boolean $debug = False])
 boolean isValid ([ $debug = False])
 void sessSave ([boolean $debug = False])
Variables
Methods
static setCurrent (line 55)

* class methods ---------------------------------------------------

void setCurrent ( &$aUser)
  • &$aUser
Constructor __construct (line 72)

* attributes --------------------------------------------------

  • access: public
OCSP_SHELLUSER __construct ()

Redefinition of:
OCSP_USER::__construct()
constructor
isAdmin (line 158)

returns if a user is admin

  • access: public
boolean isAdmin ([boolean $debug = False])
  • boolean $debug
isAllowed (line 141)

checks the user against a merge of $this->curSecReq and $addSecReq

  • since: pk-06-08-15
boolean isAllowed ([array $addSecReq = NULL], [ $debug = False])
  • array $addSecReq
  • $debug
isEnabled (line 125)

returns if the user is enabled by default

NOTE: does not check current page settings

boolean isEnabled ([$debug $debug = False])
  • $debug $debug
isPublic (line 102)

returns if the user is public or is a logined user

cronjob runs as system user (userid 1)

boolean isPublic ([boolean $debug = False])
  • boolean $debug
isValid (line 111)
boolean isValid ([ $debug = False])
  • $debug
sessSave (line 174)

stores the user to the session

  • version: pk-08-06-11 store only if $this is current user
  • access: public
void sessSave ([boolean $debug = False])
  • boolean $debug

Inherited Methods

Inherited From OCSP_USER

 OCSP_USER::__construct()
 OCSP_USER::dbConnect()
 OCSP_USER::disable()
 OCSP_USER::echoLoginForm()
 OCSP_USER::enable()
 OCSP_USER::factoryCurrentFromLoginPasswd()
 OCSP_USER::factoryCurrentFromSession()
 OCSP_USER::factoryFromId()
 OCSP_USER::factoryFromLoginName()
 OCSP_USER::getDBConfFile()
 OCSP_USER::getHttpLoginForm()
 OCSP_USER::getId()
 OCSP_USER::getJavaScriptLoginForm()
 OCSP_USER::getLang()
 OCSP_USER::getName()
 OCSP_USER::isConnected()
 OCSP_USER::setDBConfFile()

Inherited From DBMS_TABLEOBJ

 DBMS_TABLEOBJ::DBMS_TABLEOBJ()
 DBMS_TABLEOBJ::cacheRestore()
 DBMS_TABLEOBJ::cacheWriteTo()
 DBMS_TABLEOBJ::clearErrors()
 DBMS_TABLEOBJ::dbDelete()
 DBMS_TABLEOBJ::dbGetDataArray()
 DBMS_TABLEOBJ::dbGetForm()
 DBMS_TABLEOBJ::dbInsert()
 DBMS_TABLEOBJ::dbPopulate()
 DBMS_TABLEOBJ::dbReplace()
 DBMS_TABLEOBJ::dbSave()
 DBMS_TABLEOBJ::db_SetKey()
 DBMS_TABLEOBJ::db_SetKeyArray()
 DBMS_TABLEOBJ::getClassInclude()
 DBMS_TABLEOBJ::getDbDesc()
 DBMS_TABLEOBJ::getDBField()
 DBMS_TABLEOBJ::getDBRow()
 DBMS_TABLEOBJ::getDBVal()
 DBMS_TABLEOBJ::getDefaults()
 DBMS_TABLEOBJ::getErrorMsg()
 DBMS_TABLEOBJ::getFieldDBDefault()
 DBMS_TABLEOBJ::getForm()
 DBMS_TABLEOBJ::getFormClassName()
 DBMS_TABLEOBJ::getFormName()
 DBMS_TABLEOBJ::getJSON()
 DBMS_TABLEOBJ::getKeyArr()
 DBMS_TABLEOBJ::getMyTable()
 DBMS_TABLEOBJ::getObjValArray()
 DBMS_TABLEOBJ::getObjValValue()
 DBMS_TABLEOBJ::getPopulateTs()
 DBMS_TABLEOBJ::getWhere()
 DBMS_TABLEOBJ::hasChanged()
 DBMS_TABLEOBJ::hasColumn()
 DBMS_TABLEOBJ::hasErrors()
 DBMS_TABLEOBJ::hasObjVals()
 DBMS_TABLEOBJ::init()
 DBMS_TABLEOBJ::isInit()
 DBMS_TABLEOBJ::isPopulated()
 DBMS_TABLEOBJ::keysAreSet()
 DBMS_TABLEOBJ::populateFromKeys()
 DBMS_TABLEOBJ::populateFromValues()
 DBMS_TABLEOBJ::populateObjVals()
 DBMS_TABLEOBJ::p_cacheIsExpired()
 DBMS_TABLEOBJ::saveLinkedRow()
 DBMS_TABLEOBJ::saveLinkedTableRows()
 DBMS_TABLEOBJ::saveObjVals()
 DBMS_TABLEOBJ::setChanged()
 DBMS_TABLEOBJ::setDBField()
 DBMS_TABLEOBJ::setDBFieldIfDiff()
 DBMS_TABLEOBJ::setDBFieldIfEmpty()
 DBMS_TABLEOBJ::setDBRow()
 DBMS_TABLEOBJ::setDBVal()
 DBMS_TABLEOBJ::setDefaults()
 DBMS_TABLEOBJ::setError()
 DBMS_TABLEOBJ::setLinkedTableRow()
 DBMS_TABLEOBJ::setMyTable()
 DBMS_TABLEOBJ::setObjValArray()
 DBMS_TABLEOBJ::setObjValValue()
 DBMS_TABLEOBJ::setObjVarIfEmpty()
 DBMS_TABLEOBJ::setUnChanged()
 DBMS_TABLEOBJ::userIsAllowed()
 DBMS_TABLEOBJ::writeDebugInfo()
 DBMS_TABLEOBJ::xmladdDOMElement()
 DBMS_TABLEOBJ::xmlExport()
 DBMS_TABLEOBJ::_getCacheFileName()
 DBMS_TABLEOBJ::_getDBFields()

Inherited From OCSP_OBJ

 OCSP_OBJ::castObj()
 OCSP_OBJ::cloneMe()
 OCSP_OBJ::currentUser()
 OCSP_OBJ::dbConnect()
 OCSP_OBJ::defaultDBObj()
 OCSP_OBJ::defaultReadDBObj()
 OCSP_OBJ::defaultWriteDBObj()
 OCSP_OBJ::getConf()
 OCSP_OBJ::getDBObj()
 OCSP_OBJ::get_myClassConstant()
 OCSP_OBJ::get_myObject_vars()
 OCSP_OBJ::get_mySourceFile()
 OCSP_OBJ::isConnected()
 OCSP_OBJ::isMultiByteStr()
 OCSP_OBJ::isUTF8()
 OCSP_OBJ::setConf()
 OCSP_OBJ::setDBObj()
 OCSP_OBJ::set_myObject_vars()
 OCSP_OBJ::set_myVarsFrom()
Class Constants
CLASS_SRC_FILE = __FILE__ (line 45)

Inherited Constants

Inherited from OCSP_USER

OCSP_USER::CLASS_SRC_FILE

Inherited from DBMS_TABLEOBJ

DBMS_TABLEOBJ::CLASS_SRC_FILE

Inherited from OCSP_OBJ

OCSP_OBJ::CLASS_SRC_FILE

Documentation generated on Thu, 08 Jan 2009 17:47:09 +0100 by phpDocumentor 1.4.0a2