Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • LimitedScope
  • MimeTypeDetector
  • ObjectMixin
  • Paginator
  • Random
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

  • AssertionException
  • JsonException
  • RegexpException
  • TokenizerException
  • 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\Utils\ArrayList implements ArrayAccess, Countable, IteratorAggregate

Direct known subclasses

Nette\Application\Routers\RouteList
Namespace: Nette\Utils
Located at Utils/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|null $index, mixed $value )

Replaces or appends a item.

Replaces or appends a item.

Parameters

$index
integer|null
$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 inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0