Namespaces

  • 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

Classes

  • ArrayHash
  • ArrayList
  • Callback
  • DateTime
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ArrayList

Provides the base class for a generic list (items can be accessed by index).

Nette\Object
Extended by Nette\ArrayList implements ArrayAccess, Countable, IteratorAggregate

Direct known subclasses

Nette\Application\Routers\RouteList
Namespace: Nette
Author: David Grudl
Located at common/ArrayList.php
Methods summary
public ArrayIterator
# getIterator( )

Returns an iterator over all items.

Returns an iterator over all items.

Returns

ArrayIterator

Implementation of

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

Returns items count.

Returns items count.

Returns

integer

Implementation of

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

Replaces or appends a item.

Replaces or appends a item.

Parameters

$index
integer
$value
mixed

Throws

Nette\OutOfRangeException

Implementation of

ArrayAccess::offsetSet()
public mixed
# offsetGet( integer $index )

Returns a item.

Returns a item.

Parameters

$index
integer

Returns

mixed

Throws

Nette\OutOfRangeException

Implementation of

ArrayAccess::offsetGet()
public boolean
# offsetExists( integer $index )

Determines whether a item exists.

Determines whether a item exists.

Parameters

$index
integer

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( integer $index )

Removes the element at the specified position in this list.

Removes the element at the specified position in this list.

Parameters

$index
integer

Throws

Nette\OutOfRangeException

Implementation of

ArrayAccess::offsetUnset()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public read-only ArrayIterator $iterator
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.0 API documentation generated by ApiGen 2.8.0