...
Concept | In Web Request | In CLI |
---|---|---|
logged-in user id | $this->Application->RecallVar('user_id') |
|
is ajax request | $this->Application->GetVar('ajax') == 'yes' |
|
current language id | $this->Application->GetVar('m_lang') |
|
current theme id | $this->Application->GetVar('m_theme') |
|
automatic object loading by ID in url | code inside "kDBEventHandler::StoreSelectedIDs" method |
|
getting current site domain field | $this->Application->siteDomainField('FieldName') |
|
current session id | $this->Application->GetSID() |
|
main popup window identifier | $this->Application->GetTopmostWid() |
|
popup window identifier | $this->Application->GetVar('m_wid') |
|
is current user logged-in | $this->Application->LoggedIn() |
|
website visitor IP address | $this->Application->getClientIP() |
|
attempt to read/write web request data |
| |
attempt to read/write session data |
|
|
attempt to read/write session data | other methods |
|
Even though most of methods mentioned makes no sense in CLI they still return value that makes sense to avoid changing every call site.