Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • ObjectHelpers
  • ObjectMixin
  • Paginator
  • Random
  • Reflection
  • SafeStream
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

  • AssertionException
  • ImageException
  • JsonException
  • RegexpException
  • TokenizerException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class ArrayList

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

Nette\Utils\ArrayList implements ArrayAccess, Countable, IteratorAggregate uses Nette\SmartObject

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
\ArrayIterator

Implementation of

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

Returns items count.

Returns items count.

Returns

integer
int

Implementation of

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

Replaces or appends a item.

Replaces or appends a item.

Parameters

$index
$value

Throws

Nette\OutOfRangeException
Nette\OutOfRangeException

Implementation of

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

Returns a item.

Returns a item.

Parameters

$index

Returns

mixed
mixed

Throws

Nette\OutOfRangeException
Nette\OutOfRangeException

Implementation of

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

Determines whether a item exists.

Determines whether a item exists.

Parameters

$index

Returns

boolean
bool

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

Throws

Nette\OutOfRangeException
Nette\OutOfRangeException

Implementation of

ArrayAccess::offsetUnset()
public
# prepend( mixed $value )

Prepends a item.

Prepends a item.

Parameters

$value
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0