Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • NArrayHash
  • NArrayList
  • NCallback
  • NDateTime53
  • NEnvironment
  • NFramework
  • NFreezableObject
  • NImage
  • NObject
  • NObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • NStaticClassException
  • NUnknownImageFileException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class NArrayHash

Provides objects to work as array.

stdClass
Extended by NArrayHash implements ArrayAccess, Countable, IteratorAggregate

Direct known subclasses

NRow
Package: Nette
Author: David Grudl
Located at common/ArrayHash.php
Methods summary
public static NArrayHash
# from( array $arr, boolean $recursive = TRUE )

Parameters

$arr
array
to wrap
$recursive
boolean

Returns

NArrayHash
public RecursiveArrayIterator
# getIterator( )

Returns an iterator over all items.

Returns an iterator over all items.

Returns

RecursiveArrayIterator

Implementation of

IteratorAggregate::getIterator()
public integer
# count( )

Returns items count.

Returns items count.

Returns

integer

Implementation of

Countable::count()
public
# offsetSet( mixed $key, mixed $value )

Replaces or appends a item.

Replaces or appends a item.

Parameters

$key
mixed
$value
mixed

Implementation of

ArrayAccess::offsetSet()
public mixed
# offsetGet( mixed $key )

Returns a item.

Returns a item.

Parameters

$key
mixed

Returns

mixed

Implementation of

ArrayAccess::offsetGet()
public boolean
# offsetExists( mixed $key )

Determines whether a item exists.

Determines whether a item exists.

Parameters

$key
mixed

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( mixed $key )

Removes the element from this list.

Removes the element from this list.

Parameters

$key
mixed

Implementation of

ArrayAccess::offsetUnset()
Nette Framework 2.0.7 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.8.0