SAPID Encyclopedia  
Sapid   SAPID-Club (English, Russian, Portuguese forums) SAPID-Workshop (Project and developer charts) SAPID-Wiki (SAPID Live Encyclopedia) SAPID-Farm (The best place for a SAPID-based project)
Download
eXTReMe Tracker

Environment

Global Variables

Variable

Content

$http_path

Site http-address

$root_path

Absolute address of project

$FEEDBACK_EMAIL

Email-address for FEEDBACK

$default_charset

Current charset

$default_language

Language of interface

Environment variables

The $env array contains environment variables. The array is delivered to XML Sapiens processor and it is modified during document compiling. Thus array actual version in CMS-applications will be accessible as $this->env.

Environment variable is accessible in syntax XML Sapiens as <sapi:apply name=variable_name /> or &variable_name;

Variable

Value

$env [http_path]

Site address

$env [area51]

Mode: 0-content delivery, 1- administrative mode(viewing state), 2- administrative mode (editing state)

$env [obj_cache]

Trigger of DDC caching

$env [default_charset]

Document charset

$env [default_language]

Interface language

$env [argv_string]

String of browser address string arguments

$env [noslash_argv_string]

-//-

$env [last_argv]

Last argument of the address string

$env [argv.{n}]

{n} element of the address string

$env [document.id]

Document identifier

$env [document.title]

Content of QC.TITLE.VALUE

$env [document.template]

Document template

$env [document.variable]

Document variable

$env [document.level]

Level of document structure nesting

$env [document.datetime]

Date of document creation in DATETIME

$env [page.CONTENT]

Content QC.CONTENT.VALUE

$env [page.pRead]

Reading permission

$env [page.pWrite]

Writing permission

$env [page.pCreate]

Creating permission

$env [user.LOGIN]

Current user login

$env [user.GROUP]

Current user group

$env [user.aStatus]

User authorization status

$env [argv][_]

Content of certain address string argument

$env [argv_nav][_]

Content of certain argument of address string navigation part

$env [len_argv_nav]

Numbers of arguments of address string navigation part

$env [argv_virtual.year]

Value of address string YEAR filter

$env [argv_virtual.month]

Value of address string MONTH filter

$env [argv_virtual.day]

Value of address string DAY filter

$env [argv_virtual.id]

Value of address string ID (entry ID) filter



User Contributed Notes

January 01, 1970 00:00
Add a note

Your email address/name
Your notes
Red Graphic Systems Sponsored