Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • Modulework
    • Modules
      • Http
        • Exceptions
        • Utilities
  • PHP

Classes

  • ArrayCase
  • FileCase
  • HeaderCase
  • HeaderWrapper
  • IpValidator
  • ServerCase

Interfaces

  • ArrayCaseInterface
  • HeaderWrapperInterface
  • IpValidatorInterface

Interface ArrayCaseInterface

ArrayCase is an OOP way of handling arrays

Direct known implementers

Modulework\Modules\Http\Utilities\ArrayCase

Indirect known implementers

Modulework\Modules\Http\Utilities\FileCase, Modulework\Modules\Http\Utilities\HeaderCase, Modulework\Modules\Http\Utilities\ServerCase

Namespace: Modulework\Modules\Http\Utilities
Located at Modulework/Modules/Http/Utilities/ArrayCaseInterface.php

Methods summary

public
# __construct( array $array = array() )

Constructor.

Constructor.

Parameters

$array
array
$array The array to "wrap"
public array
# all( )

Returns the array

Returns the array

Returns

array
The array
public mixed
# get( string $key, mixed $default = null )

Returns the value for a specific key

Returns the value for a specific key

Parameters

$key
string
$key The key
$default
mixed
$default This returns when the key wasn' t found

Returns

mixed
public boolean
# set( string $key, mixed $value, boolean $override = true )

Sets a parameter for a specific key

Sets a parameter for a specific key

Parameters

$key
string
$key The key
$value
mixed
$value The value to store
$override
boolean
$override FALSE will force the method to not override existing keys

Returns

boolean
Whether the setting was successful
public boolean
# has( string $key )

Checks if a key parameter exists

Checks if a key parameter exists

Parameters

$key
string
$key The key

Returns

boolean
TRUE if found
public
# remove( string $key )

Removes a parameter from the array

Removes a parameter from the array

Parameters

$key
string
$key The key
public
# merge( array $array = array() )

Merge the internal array with the new one

Merge the internal array with the new one

Parameters

$array
array
$array The array to merge
public
# mock( array $array = array() )

Replace the internal completly with the new one It' s just a assigning, no magic things!

Replace the internal completly with the new one It' s just a assigning, no magic things!

Parameters

$array
array
$array The array
public array
# keys( )

Return all keys from the array

Return all keys from the array

Returns

array
The keys in a array
public
# push( mixed $value )

Pushes a parameter

Pushes a parameter

Parameters

$value
mixed
$value The value to store

Magic methods summary

API documentation generated by ApiGen 2.8.0