GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Static Public Member Functions
Arr Class Reference

We use Laravel's Arr class for all array helper methods. More...

Inheritance diagram for Arr:

Static Public Member Functions

static accessible ( $value)
 {} More...
 
static add ( $array, $key, $value)
 {} More...
 
static collapse ( $array)
 {} More...
 
static crossJoin (... $arrays)
 {} More...
 
static divide ( $array)
 {} More...
 
static dot ( $array, $prepend='')
 {} More...
 
static except ( $array, $keys)
 {} More...
 
static exists ( $array, $key)
 {} More...
 
static first ( $array, callable $callback=null, $default=null)
 {} More...
 
static flatten ( $array, $depth=INF)
 {} More...
 
static forget (&$array, $keys)
 {} More...
 
static get ( $array, $key, $default=null)
 {} More...
 
static has ( $array, $keys)
 {} More...
 
static isAssoc (array $array)
 {} More...
 
static last ( $array, callable $callback=null, $default=null)
 {} More...
 
static only ( $array, $keys)
 {} More...
 
static pluck ( $array, $value, $key=null)
 {} More...
 
static prepend ( $array, $value, $key=null)
 {} More...
 
static pull (&$array, $key, $default=null)
 {} More...
 
static random ( $array, $number=null)
 {} More...
 
static set (&$array, $key, $value)
 {} More...
 
static shuffle ( $array)
 {} More...
 
static sort ( $array, $callback)
 {} More...
 
static sortRecursive ( $array)
 {} More...
 
static undot ( $array)
 Convert a flattened "dot" notation array into an expanded array. More...
 
static where ( $array, callable $callback)
 {} More...
 
static wrap ( $value)
 {} More...
 

Detailed Description

We use Laravel's Arr class for all array helper methods.

This is a wrapper as we may swap out the underlying class in the future, add or modify methods, etc.

Since
1.0.0
See also
https://github.com/illuminate/support/blob/5.4/Arr.php

Definition at line 20 of file Arr.php.

Member Function Documentation

◆ accessible()

static accessible (   $value)
static

{}

Since
1.0.0

Definition at line 26 of file Arr.php.

References $value.

◆ add()

static add (   $array,
  $key,
  $value 
)
static

{}

Since
1.0.0

Definition at line 35 of file Arr.php.

References $value.

◆ collapse()

static collapse (   $array)
static

{}

Since
1.0.0

Definition at line 44 of file Arr.php.

◆ crossJoin()

static crossJoin (   $arrays)
static

{}

Since
1.0.0

Definition at line 53 of file Arr.php.

◆ divide()

static divide (   $array)
static

{}

Since
1.0.0

Definition at line 62 of file Arr.php.

◆ dot()

static dot (   $array,
  $prepend = '' 
)
static

{}

Since
1.0.0

Definition at line 71 of file Arr.php.

◆ except()

static except (   $array,
  $keys 
)
static

{}

Since
1.0.0

Definition at line 108 of file Arr.php.

◆ exists()

static exists (   $array,
  $key 
)
static

{}

Since
1.0.0

Definition at line 117 of file Arr.php.

◆ first()

static first (   $array,
callable  $callback = null,
  $default = null 
)
static

{}

Since
1.0.0

Definition at line 126 of file Arr.php.

◆ flatten()

static flatten (   $array,
  $depth = INF 
)
static

{}

Since
1.0.0

Definition at line 135 of file Arr.php.

◆ forget()

static forget ( $array,
  $keys 
)
static

{}

Since
1.0.0

Definition at line 144 of file Arr.php.

◆ get()

static get (   $array,
  $key,
  $default = null 
)
static

◆ has()

static has (   $array,
  $keys 
)
static

{}

Since
1.0.0

Definition at line 153 of file Arr.php.

◆ isAssoc()

static isAssoc ( array  $array)
static

{}

Since
1.0.0

Definition at line 162 of file Arr.php.

◆ last()

static last (   $array,
callable  $callback = null,
  $default = null 
)
static

{}

Since
1.0.0

Definition at line 171 of file Arr.php.

◆ only()

static only (   $array,
  $keys 
)
static

{}

Since
1.0.0

Definition at line 180 of file Arr.php.

Referenced by LicenseManager\get_site_data().

◆ pluck()

static pluck (   $array,
  $value,
  $key = null 
)
static

{}

Since
1.0.0

Definition at line 189 of file Arr.php.

References $value.

Referenced by Framework\enqueue_assets().

◆ prepend()

static prepend (   $array,
  $value,
  $key = null 
)
static

{}

Since
1.0.0

Definition at line 198 of file Arr.php.

References $value.

◆ pull()

static pull ( $array,
  $key,
  $default = null 
)
static

{}

Since
1.0.0

Definition at line 207 of file Arr.php.

◆ random()

static random (   $array,
  $number = null 
)
static

{}

Since
1.0.0

Definition at line 216 of file Arr.php.

◆ set()

static set ( $array,
  $key,
  $value 
)
static

{}

Since
1.0.0

Definition at line 225 of file Arr.php.

References $value.

Referenced by TrustedLogin\add_tl_key_to_helpscout_beacon(), TrustedLogin\get_config(), and Framework\get_settings().

◆ shuffle()

static shuffle (   $array)
static

{}

Since
1.0.0

Definition at line 234 of file Arr.php.

◆ sort()

static sort (   $array,
  $callback 
)
static

{}

Since
1.0.0

Definition at line 243 of file Arr.php.

◆ sortRecursive()

static sortRecursive (   $array)
static

{}

Since
1.0.0

Definition at line 252 of file Arr.php.

◆ undot()

static undot (   $array)
static

Convert a flattened "dot" notation array into an expanded array.

Since
1.0.3
Parameters
iterable$array
Returns
array

Definition at line 84 of file Arr.php.

References $value.

◆ where()

static where (   $array,
callable  $callback 
)
static

{}

Since
1.0.0

Definition at line 261 of file Arr.php.

◆ wrap()

static wrap (   $value)
static

{}

Since
1.0.0

Definition at line 270 of file Arr.php.

References $value.


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