X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FUtils%2FRecent.php;h=aa66d55454c8da18e66b9a40969ba8b402a5bdea;hb=8671b4f2efb228dc654123b391fd794b23b99d49;hp=cf47c1a563abddeab9af050fb9ae0af818126400;hpb=d424ffde71135407dc6297d0d1f0c85fa6413d7d;p=civicrm-core.git diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index cf47c1a563..aa66d55454 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -49,7 +49,6 @@ class CRM_Utils_Recent { * The list of recently viewed items * * @var array - * @static */ static private $_recent = NULL; @@ -57,7 +56,6 @@ class CRM_Utils_Recent { * Initialize this class and set the static variables * * @return void - * @static */ public static function initialize() { if (!self::$_recent) { @@ -74,7 +72,6 @@ class CRM_Utils_Recent { * * @return array * the recently viewed array - * @static */ public static function &get() { self::initialize(); @@ -96,9 +93,8 @@ class CRM_Utils_Recent { * @param array $others * * @return void - * @static */ - static function add( + public static function add( $title, $url, $id, @@ -154,7 +150,6 @@ class CRM_Utils_Recent { * Array of the recent Item to be removed. * * @return void - * @static */ public static function del($recentItem) { self::initialize(); @@ -183,7 +178,6 @@ class CRM_Utils_Recent { * Contact id that had to be removed. * * @return void - * @static */ public static function delContact($id) { self::initialize(); @@ -204,4 +198,5 @@ class CRM_Utils_Recent { $session = CRM_Core_Session::singleton(); $session->set(self::STORE_NAME, self::$_recent); } + }