$db
object allows you to access the active Elentra database connection. Elentra uses the ADOdb library to accomplish this.Model_Events::get($id)
).$ENTRADA_ACL
object allows you to check whether or not a user has access to do something. The [Elentra ACL] is fairly complex, so time should be taken to properly understand how it works.www-root/core/library/Entrada/authentication/entrada_acl.inc.php
www-root/core/library/Entrada/Acl.php
$ENTRADA_ROUTER
$ENTRADA_SETTINGS
$ENTRADA_TEMPLATE
www-root/core/library/Models/users/User.class.php
$translate->_("Your String");
. Elentra uses Zend_Translate to support multiple front-end languages, and when you wrap your language strings with the magic _()
method your text can be replaced with the correct language.$ONLOAD
array allows you to record JavaScript that you would like to run after the DOM load is complete. The elements added to this array during run-time are dynamically added to the bottom of your HTML document within a jQuery(document).ready(function() { ... });
block.$JQUERY
array allows you to manually include additional jQuery libraries in the correct location (i.e. after the main jQuery library, but before other dependencies) between the current page's <head></head>
tags. The elements added to this array during run-time replace the %JQUERY%
placeholder from the active template's header.tpl.php
file.$HEAD
array allows you to include additional content between the current page's <head></head>
tags. The elements added to this array during run-time replace the %HEAD%
placeholder from the active template's header.tpl.php
file.$BREADCRUMB
array is a multidimensional array that is used to automatically generate a page's breadcrumb trail. You simply add arrays to the $BREADCRUMB
array that contain a url
and title
key.$AGENT_CONTACTS
$MODULES
$ADMINISTRATION
$SECTION
$ACTION
$MODULE
$COMMUNITY_ID
variable will return the communities.community_id
of the community that is currently being accessed by the user.$COMMUNITY_URL
variable will return the full URL of this community.