+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2016
*/
/**
}
/**
- * This function takes care of all the things common to all
- * pages. This typically involves assigning the appropriate smarty
- * variable :)
+ * This function takes care of all the things common to all pages.
*
- * @return void|string
- * The content generated by running this page
+ * This typically involves assigning the appropriate smarty variables :)
*/
public function run() {
if ($this->_embedded) {
// Intermittent alert to admins
CRM_Utils_Check::singleton()->showPeriodicAlerts();
- if ($this->useLivePageJS &&
- CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'ajaxPopupsEnabled', NULL, TRUE)
- ) {
+ if ($this->useLivePageJS && Civi::settings()->get('ajaxPopupsEnabled')) {
CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js', 1, 'html-header');
}
* @param string|array $name name of the variable or an assoc array of name/value pairs
* @param mixed $value
* Value of the variable if string.
- *
- *
- * @return void
*/
public function set($name, $value = NULL) {
self::$_session->set($name, $value, $this->_name);
*
* @param string $var
* @param mixed $value
- * Value of varaible.
- *
- * @return void
+ * Value of variable.
*/
public function assign($var, $value = NULL) {
self::$_template->assign($var, $value);
*
* @param string $var
* @param mixed $value
- * (reference) value of varaible.
- *
- * @return void
+ * (reference) value of variable.
*/
public function assign_by_ref($var, &$value) {
self::$_template->assign_by_ref($var, $value);
/**
* Destroy all the session state of this page.
- *
- *
- * @return void
*/
public function reset() {
self::$_session->resetScope($this->_name);
* Setter for embedded.
*
* @param bool $embedded
- *
- * @return void
*/
public function setEmbedded($embedded) {
$this->_embedded = $embedded;
* Setter for print.
*
* @param bool $print
- *
- * @return void
*/
public function setPrint($print) {
$this->_print = $print;