Overview

Namespaces

  • Knot
    • Dict
      • Helpers
    • Exceptions
  • None

Classes

  • AbstractDictBody
  • ChildDict
  • HelperManager
  • ParentDict

Traits

  • ArrayAccessTrait
  • CountableTrait
  • IteratorAggregateTrait
  • PathOperationsTrait
  • Overview
  • Namespace
  • Class

Trait PathOperationsTrait

Direct Known Users

Knot\Dict\AbstractDictBody

Indirect Known Users

Knot\Dict, Knot\Dict\ChildDict, Knot\Dict\ParentDict
Namespace: Knot\Dict
Located at Knot/Dict/PathOperationsTrait.php
Methods summary
abstract public
# childParent( )
public null|string
# path( null $add = null )

Parameters

$add

Returns

null|string
public static array
# pathParser( $path )

Parameters

$path

Returns

array
public static string
# pathCombiner( array $path )

Parameters

$path

Returns

string
public boolean
# isPath( $path )

Parameters

$path

Returns

boolean
public array|Knot\Dict\ChildDict|Mixed
# get( $path )

Parameters

$path

Returns

array|Knot\Dict\ChildDict|Mixed

Throws

Knot\Exceptions\WrongArrayPathException
public Mixed
# getOnly( $path )

For Get path without parsing default return to data.

For Get path without parsing default return to data.

Parameters

$path

Returns

Mixed

Throws

Knot\Exceptions\WrongArrayPathException
public Mixed|Knot\Dict\ChildDict
# set( $rawPath, $value )

Parameters

$rawPath
$value

Returns

Mixed|Knot\Dict\ChildDict
public
# del( $rawPath )

Parameters

$rawPath

Returns


$this
Properties summary
public static string $ARRAY_PATH_DELIMITER

For parsing array path.

For parsing array path.

# "."
protected array $data
# [ ]
protected string $path
# ''
API documentation generated by ApiGen