ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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 }

◆ splitOnAttributeDelimiter()

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

Definition at line 7 of file StringUtil.php.

8 {
9 return array_filter(preg_split('@\s*[;]\s*@', $string));
10 }

Referenced by Dflydev\FigCookies\Cookie\listFromCookieString().

+ Here is the caller graph for this function:

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