X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FBase.php;h=a83754f7cf651899b056af88dabdec84f2a8089e;hb=f3a87cf4c56278ddf6298806de476329f45dcf11;hp=3f99ae6af942548dc075e029f8d8481a44c338cf;hpb=fddf612d86189f4f71c4edcb4e9567b1b1575483;p=civicrm-core.git diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index 3f99ae6af9..a83754f7cf 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -11,44 +11,44 @@ abstract class CRM_Utils_System_Base { * The correct method is to have functions on the UF classes for all UF specific * functions and leave the codebase oblivious to the type of CMS * - * @deprecated * @var bool + * @deprecated * TRUE, if the CMS is Drupal. */ - var $is_drupal = FALSE; + public $is_drupal = FALSE; /** * Deprecated property to check if this is a joomla install. The correct method is to have functions on the UF classes for all UF specific * functions and leave the codebase oblivious to the type of CMS * - * @deprecated * @var bool + * @deprecated * TRUE, if the CMS is Joomla!. */ - var $is_joomla = FALSE; + public $is_joomla = FALSE; /** * deprecated property to check if this is a wordpress install. The correct method is to have functions on the UF classes for all UF specific * functions and leave the codebase oblivious to the type of CMS * - * @deprecated * @var bool + * @deprecated * TRUE, if the CMS is WordPress. */ - var $is_wordpress = FALSE; + public $is_wordpress = FALSE; /** * Does this CMS / UF support a CMS specific logging mechanism? - * @todo - we should think about offering up logging mechanisms in a way that is also extensible by extensions * @var bool + * @todo - we should think about offering up logging mechanisms in a way that is also extensible by extensions */ - var $supports_UF_Logging = FALSE; + public $supports_UF_Logging = FALSE; /** * @var bool * TRUE, if the CMS allows CMS forms to be extended by hooks. */ - var $supports_form_extensions = FALSE; + public $supports_form_extensions = FALSE; public function initialize() { if (\CRM_Utils_System::isSSL()) { @@ -56,7 +56,7 @@ abstract class CRM_Utils_System_Base { } } - public abstract function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL); + abstract public function loadBootStrap($params = [], $loadUser = TRUE, $throwError = TRUE, $realPath = NULL); /** * Append an additional breadcrumb tag to the existing breadcrumb. @@ -254,10 +254,9 @@ abstract class CRM_Utils_System_Base { } $out = $content; - $config = &CRM_Core_Config::singleton(); if ( !$print && - $config->userFramework == 'WordPress' + CRM_Core_Config::singleton()->userFramework == 'WordPress' ) { if (!function_exists('is_admin')) { throw new \Exception('Function "is_admin()" is missing, even though WordPress is the user framework.'); @@ -424,7 +423,7 @@ abstract class CRM_Utils_System_Base { * @return string * loginURL for the current CMS */ - public abstract function getLoginURL($destination = ''); + abstract public function getLoginURL($destination = ''); /** * Get the login destination string. @@ -710,7 +709,6 @@ abstract class CRM_Utils_System_Base { } } - /** * Get timezone from CMS. * @@ -915,9 +913,9 @@ abstract class CRM_Utils_System_Base { /** * Append to coreResourcesList. * - * @param array $list + * @param \Civi\Core\Event\GenericHookEvent $e */ - public function appendCoreResources(&$list) { + public function appendCoreResources(\Civi\Core\Event\GenericHookEvent $e) { } /**