Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ConceptIn Web RequestIn CLI
logged-in user id$this->Application->RecallVar('user_id')
  • no session
  • no permission checking
  • no logged-in user concept
  • always return fixed user id
is ajax request$this->Application->GetVar('ajax') == 'yes'
  • no web request
  • always return false
current language id$this->Application->GetVar('m_lang')
  • no web request
  • always return primary language id
current theme id$this->Application->GetVar('m_theme')
  • no web request
  • always return primary theme id
automatic object loading by ID in urlcode inside "kDBEventHandler::StoreSelectedIDs" method
  • no web request
  • throw an exception on loading attempt
getting current site domain field$this->Application->siteDomainField('FieldName')
  • no web request
  • no domains
  • always return false
current session id$this->Application->GetSID()
  • no session
  • always return ID of current CLI process ID (PID)
main popup window identifier$this->Application->GetTopmostWid()
  • no windows in CLI
  • always return an empty string
popup window identifier$this->Application->GetVar('m_wid')
  • no windows in CLI
  • always return an empty string
is current user logged-in$this->Application->LoggedIn()
  • no session
  • no permission checking
  • no logged-in user concept
  • always return false
website visitor IP address$this->Application->getClientIP()
  • no web request
  • always return empty string
attempt to read/write web request data 
  • always throw an exception
attempt to read/write session data 
  • $this->Application->StoreVar(..., ...)
  • $this->Application->RecallVar(..., ...)
  • $this->Application->RemoveVar(...)
  • no session
  • create in-memory storage to be used instead of session
attempt to read/write session dataother methods
  • always throw an exception

...