* 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()) {
}
}
- 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.
}
$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.');
* @return string
* loginURL for the current CMS
*/
- public abstract function getLoginURL($destination = '');
+ abstract public function getLoginURL($destination = '');
/**
* Get the login destination string.
}
}
-
/**
* Get timezone from CMS.
*
/**
* Append to coreResourcesList.
*
- * @param array $list
+ * @param \Civi\Core\Event\GenericHookEvent $e
*/
- public function appendCoreResources(&$list) {
+ public function appendCoreResources(\Civi\Core\Event\GenericHookEvent $e) {
}
/**