Ejemplo n.º 1
0
 /**
  * initialises the $_properties array
  * @return void
  */
 static function initProperties()
 {
     if (!defined('BLOCK_CACHE_GLOBAL')) {
         define('BLOCK_CACHE_GLOBAL', 0x8);
     }
     if (!defined('BLOCK_CACHE_PER_PAGE')) {
         define('BLOCK_CACHE_PER_PAGE', 0x4);
     }
     if (!self::$_properties) {
         self::$_properties = array(self::CREATE_NEW => array('template' => 'CreateNew.tpl', 'info' => ts('CiviCRM Create New Record'), 'subject' => ts(''), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -100, 'status' => 1, 'pages' => 'civicrm*', 'region' => 'left'), self::RECENTLY_VIEWED => array('template' => 'RecentlyViewed.tpl', 'info' => ts('CiviCRM Recent Items'), 'subject' => ts('Recent Items'), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -99, 'status' => 1, 'pages' => 'civicrm*', 'region' => 'left'), self::DASHBOARD => array('template' => 'Dashboard.tpl', 'info' => ts('CiviCRM Contact Dashboard'), 'subject' => '', 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -98, 'status' => 1, 'pages' => 'civicrm*', 'region' => 'left'), self::ADD => array('template' => 'Add.tpl', 'info' => ts('CiviCRM Quick Add'), 'subject' => ts('New Individual'), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -97, 'status' => 1, 'pages' => 'civicrm*', 'region' => 'left'), self::LANGSWITCH => array('template' => 'LangSwitch.tpl', 'info' => ts('CiviCRM Language Switcher'), 'subject' => '', 'templateValues' => array(), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -96, 'status' => 1, 'pages' => 'civicrm*', 'region' => 'left'), self::EVENT => array('template' => 'Event.tpl', 'info' => ts('CiviCRM Upcoming Events'), 'subject' => ts('Upcoming Events'), 'templateValues' => array(), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -95, 'status' => 0, 'pages' => 'civicrm*', 'region' => 'left'), self::FULLTEXT_SEARCH => array('template' => 'FullTextSearch.tpl', 'info' => ts('CiviCRM Full-text Search'), 'subject' => ts('Full-text Search'), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -94, 'status' => 0, 'pages' => 'civicrm*', 'region' => 'left'), self::CIVICRM_CONTENT => array('template' => 'Content.tpl', 'info' => ts('CiviCRM'), 'subject' => ts('CiviCRM'), 'active' => true, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -94, 'status' => 0, 'pages' => 'civicrm*', 'region' => 'left'));
         ksort(self::$_properties);
     }
 }
Ejemplo n.º 2
0
 /**
  * Initialises the $_properties array
  *
  * @return void
  */
 public static function initProperties()
 {
     if (!defined('BLOCK_CACHE_GLOBAL')) {
         define('BLOCK_CACHE_GLOBAL', 0x8);
     }
     if (!defined('BLOCK_CACHE_PER_PAGE')) {
         define('BLOCK_CACHE_PER_PAGE', 0x4);
     }
     if (!defined('BLOCK_NO_CACHE')) {
         define('BLOCK_NO_CACHE', -1);
     }
     if (!self::$_properties) {
         $config = CRM_Core_Config::singleton();
         self::$_properties = array(self::CREATE_NEW => array('template' => 'CreateNew.tpl', 'info' => ts('CiviCRM Create New Record'), 'subject' => '', 'active' => TRUE, 'cache' => BLOCK_CACHE_GLOBAL, 'visibility' => 1, 'weight' => -100, 'status' => 1, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::RECENTLY_VIEWED => array('template' => 'RecentlyViewed.tpl', 'info' => ts('CiviCRM Recent Items'), 'subject' => ts('Recent Items'), 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -99, 'status' => 1, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::DASHBOARD => array('template' => 'Dashboard.tpl', 'info' => ts('CiviCRM Contact Dashboard'), 'subject' => '', 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -98, 'status' => 1, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::ADD => array('template' => 'Add.tpl', 'info' => ts('CiviCRM Quick Add'), 'subject' => ts('New Individual'), 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -97, 'status' => 1, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::LANGSWITCH => array('template' => 'LangSwitch.tpl', 'info' => ts('CiviCRM Language Switcher'), 'subject' => '', 'templateValues' => array(), 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -96, 'status' => 1, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::EVENT => array('template' => 'Event.tpl', 'info' => ts('CiviCRM Upcoming Events'), 'subject' => ts('Upcoming Events'), 'templateValues' => array(), 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -95, 'status' => 0, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()), self::FULLTEXT_SEARCH => array('template' => 'FullTextSearch.tpl', 'info' => ts('CiviCRM Full-text Search'), 'subject' => ts('Full-text Search'), 'active' => TRUE, 'cache' => BLOCK_NO_CACHE, 'visibility' => 1, 'weight' => -94, 'status' => 0, 'pages' => "civicrm\ncivicrm/*", 'region' => $config->userSystem->getDefaultBlockLocation()));
         ksort(self::$_properties);
     }
 }