From 85a1e1a0bbac5dde8dd689dfcbab1c677c4b6fb1 Mon Sep 17 00:00:00 2001 From: Matt Lewis Date: Fri, 29 Jun 2012 17:42:14 +0100 Subject: [PATCH] MINOR: Altering Visibility Altering visibility to protected on instance methods for the cookie class --- control/Cookie.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/control/Cookie.php b/control/Cookie.php index 43911fae8..dc20729af 100644 --- a/control/Cookie.php +++ b/control/Cookie.php @@ -60,7 +60,7 @@ class Cookie { return self::get_inst()->inst_report_errors(); } - public function inst_set($name, $value, $expiry = 90, $path = null, $domain = null, $secure = false, $httpOnly = false) { + protected function inst_set($name, $value, $expiry = 90, $path = null, $domain = null, $secure = false, $httpOnly = false) { if(!headers_sent($file, $line)) { $expiry = $expiry > 0 ? time()+(86400*$expiry) : $expiry; $path = ($path) ? $path : Director::baseURL(); @@ -72,21 +72,21 @@ class Cookie { } } - public function inst_get($name) { + protected function inst_get($name) { return isset($_COOKIE[$name]) ? $_COOKIE[$name] : null; } - public function inst_forceExpiry($name, $path = null, $domain = null) { + protected function inst_forceExpiry($name, $path = null, $domain = null) { if(!headers_sent($file, $line)) { self::set($name, null, -20, $path, $domain); } } - public function inst_set_report_errors($reportErrors) { + protected function inst_set_report_errors($reportErrors) { self::$report_errors = $reportErrors; } - public function report_errors() { + protected function report_errors() { return self::$report_errors; } }