Fix: add private/public function

This commit is contained in:
Regis Houssin 2015-06-27 20:26:40 +02:00
parent dfae24ded9
commit bf9c7c8ef9

View File

@ -59,7 +59,7 @@ class DolCookie
* *
* @return void * @return void
*/ */
function cryptCookie() private function cryptCookie()
{ {
if (!empty($this->myKey) && !empty($this->iv)) if (!empty($this->myKey) && !empty($this->iv))
{ {
@ -79,7 +79,7 @@ class DolCookie
* *
* @return string * @return string
*/ */
function decryptCookie() private function decryptCookie()
{ {
if (!empty($this->myKey) && !empty($this->iv)) if (!empty($this->myKey) && !empty($this->iv))
{ {
@ -105,7 +105,7 @@ class DolCookie
* @param int $secure 0 or 1 * @param int $secure 0 or 1
* @return void * @return void
*/ */
function _setCookie($cookie, $value, $expire=0, $path="/", $domain="", $secure=0) public function _setCookie($cookie, $value, $expire=0, $path="/", $domain="", $secure=0)
{ {
$this->myCookie = $cookie; $this->myCookie = $cookie;
$this->myValue = $value; $this->myValue = $value;
@ -125,7 +125,7 @@ class DolCookie
* @param string $cookie Cookie name * @param string $cookie Cookie name
* @return string Decrypted value * @return string Decrypted value
*/ */
function _getCookie($cookie) public function _getCookie($cookie)
{ {
$this->myCookie = $cookie; $this->myCookie = $cookie;