/**
  * return a string representation of the given cookie array
  * @return string
  */
 public function getCookiesString()
 {
     $cookies = $this->_cookie->get();
     return implode(self::COOKIES_DELIMITER, array_map(function ($key, $value) {
         return "{$key}={$value}";
     }, array_keys($cookies), $cookies));
 }
예제 #2
0
 /**
  * Get accepted save cookies websites
  *
  * @return array
  */
 protected function _getAcceptedSaveCookiesWebsites()
 {
     $serializedList = $this->_cookieModel->get(self::IS_USER_ALLOWED_SAVE_COOKIE);
     $unSerializedList = json_decode($serializedList, true);
     return is_array($unSerializedList) ? $unSerializedList : array();
 }