+--------------------------------------------------------------------+
| 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
*/
/**
- * defines a simple implemenation of a drupal block.
- * blocks definitions and html are in a smarty template file
+ * Defines a simple implementation of a drupal block.
*
+ * Blocks definitions and html are in a smarty template file.
*/
class CRM_Core_Block {
/**
* Initialises the $_properties array
- *
- * @return void
*/
public static function initProperties() {
if (!defined('BLOCK_CACHE_GLOBAL')) {
* The desired property.
* @param string $value
* The value of the desired property.
- *
- * @return void
*/
public static function setProperty($id, $property, $value) {
if (!(self::$_properties)) {
}
/**
- * Returns the whole $_properties array
+ * Returns the whole $_properties array.
*
* @return array
* the $_properties array
* hence this hack
*
* @param int $id
- *
- * @return void
*/
private static function setTemplateValues($id) {
switch ($id) {
/**
* Create the list of options to create New objects for the application and format is as a block.
- *
- * @return void
*/
private static function setTemplateShortcutValues() {
$config = CRM_Core_Config::singleton();
/**
* Create the list of dashboard links.
- *
- * @return void
*/
private static function setTemplateDashboardValues() {
static $dashboardLinks = array();
/**
* Create the list of mail urls for the application and format is as a block.
- *
- * @return void
*/
private static function setTemplateMailValues() {
static $shortCuts = NULL;
/**
* Create the list of shortcuts for the application and format is as a block.
- *
- * @return void
*/
private static function setTemplateMenuValues() {
$config = CRM_Core_Config::singleton();
/**
* Create the event blocks for upcoming events.
- *
- * @return void
*/
private static function setTemplateEventValues() {
$config = CRM_Core_Config::singleton();
// Suppress Language switcher if language is inherited from CMS - CRM-9971
$config = CRM_Core_Config::singleton();
- if ($id == self::LANGSWITCH && property_exists($config, "inheritLocale") && $config->inheritLocale) {
+ if ($id == self::LANGSWITCH && $config->inheritLocale) {
return NULL;
}