ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Dflydev\FigCookies\StringUtil Class Reference
+ Collaboration diagram for Dflydev\FigCookies\StringUtil:

Static Public Member Functions

static splitOnAttributeDelimiter ($string)
 
static splitCookiePair ($string)
 

Detailed Description

Definition at line 5 of file StringUtil.php.

Member Function Documentation

◆ splitCookiePair()

static Dflydev\FigCookies\StringUtil::splitCookiePair (   $string)
static

Definition at line 12 of file StringUtil.php.

Referenced by Dflydev\FigCookies\SetCookie\createExpired(), and Dflydev\FigCookies\Cookie\listFromCookieString().

13  {
14  $pairParts = explode('=', $string, 2);
15 
16  if (count($pairParts) === 1) {
17  $pairParts[1] = '';
18  }
19 
20  return array_map(function ($part) {
21  return urldecode($part);
22  }, $pairParts);
23  }
+ Here is the caller graph for this function:

◆ splitOnAttributeDelimiter()

static Dflydev\FigCookies\StringUtil::splitOnAttributeDelimiter (   $string)
static

Definition at line 7 of file StringUtil.php.

Referenced by Dflydev\FigCookies\SetCookie\createExpired(), and Dflydev\FigCookies\Cookie\listFromCookieString().

8  {
9  return array_filter(preg_split('@\s*[;]\s*@', $string));
10  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: