API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Utils Class Reference

Static Public Member Functions

static getHumanReadableBytes ($value)
 
static isSequential (array $array)
 
static composerGetExtras ($key='kint')
 
static composerSkipFlags ()
 
static isTrace (array $trace)
 
static traceFrameIsListed (array $frame, array $matches)
 
static normalizeAliases (array &$aliases)
 
static truncateString ($input, $length=PHP_INT_MAX, $end='...', $encoding=false)
 
static getTypeString (ReflectionType $type)
 

Detailed Description

A collection of utility methods. Should all be static methods with no dependencies.

Member Function Documentation

◆ composerGetExtras()

static composerGetExtras (   $key = 'kint')
static

◆ composerSkipFlags()

static composerSkipFlags ( )
static

@codeCoverageIgnore

◆ getHumanReadableBytes()

static getHumanReadableBytes (   $value)
static

Turns a byte value into a human-readable representation.

Parameters
int$valueAmount of bytes
Returns
array Human readable value and unit
Here is the caller graph for this function:

◆ getTypeString()

static getTypeString ( ReflectionType  $type)
static
Here is the caller graph for this function:

◆ isSequential()

static isSequential ( array  $array)
static

◆ isTrace()

static isTrace ( array  $trace)
static
Here is the caller graph for this function:

◆ normalizeAliases()

static normalizeAliases ( array &  $aliases)
static
Here is the caller graph for this function:

◆ traceFrameIsListed()

static traceFrameIsListed ( array  $frame,
array  $matches 
)
static
Here is the caller graph for this function:

◆ truncateString()

static truncateString (   $input,
  $length = PHP_INT_MAX,
  $end = '...',
  $encoding = false 
)
static
Here is the caller graph for this function:

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