Overview
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

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

Interfaces

  • ArrayCaseInterface
  • HeaderWrapperInterface
  • IpValidatorInterface

Class ArrayCase

ArrayCase is an OOP way of handling arrays

Modulework\Modules\Http\Utilities\ArrayCase implements Modulework\Modules\Http\Utilities\ArrayCaseInterface, Countable, IteratorAggregate

Direct known subclasses

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/ArrayCase.php

Methods summary

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

Constructor.

Constructor.

Parameters

$array
array
$array The array to "wrap"

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::__construct()
public array
# all( )

Returns the array

Returns the array

Returns

array
The array

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::all()
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

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::get()
public boolean
# set( string $key, mixed $value, boolean $override = false )

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

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::set()
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

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::has()
public
# remove( string $key )

Removes a parameter from the array

Removes a parameter from the array

Parameters

$key
string
$key The key

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::remove()
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

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::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

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::mock()
public array
# keys( )

Return all keys from the array

Return all keys from the array

Returns

array
The keys in a array

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::keys()
public
# push( mixed $value )

Pushes a parameter

Pushes a parameter

Parameters

$value
mixed
$value The value to store

Implementation of

Modulework\Modules\Http\Utilities\ArrayCaseInterface::push()
public
# getIterator( )

Implementation of

IteratorAggregate::getIterator()
public
# count( )

Implementation of

Countable::count()

Magic methods summary

Properties summary

protected array $array
#

The array which gets "wrap" by this class

The array which gets "wrap" by this class

API documentation generated by ApiGen 2.8.0