Overview

Namespaces

  • ModHelper
    • Exceptions

Classes

  • A
  • BitwiseFlag
  • Collection
  • Database
  • Editor
  • Hooks
  • Linktree
  • Menu
  • Nonce
  • Psr4AutoloaderClass
  • Verify

Traits

  • SingletonTrait
  • Overview
  • Namespace
  • Class

Class Collection

ModHelper\Collection implements IteratorAggregate, ArrayAccess
Namespace: ModHelper
Package: ModHelper
Since: 1.0
Located at Collection.php
Methods summary
public
# offsetSet( string $offset, mixed $value )

Assigns a value to the specified offset

Assigns a value to the specified offset

Parameters

$offset
offset to assign the value to
$value
value to set

Version

1.1

Since

1.1

Abstracting

ArrayAccess

Implementation of

ArrayAccess::offsetSet()
public boolean
# offsetExists( string $offset )

Whether or not an offset exists

Whether or not an offset exists

Parameters

$offset
offset to check for

Returns

boolean

Version

1.1

Since

1.1

Abstracting

ArrayAccess

Implementation of

ArrayAccess::offsetExists()
public
# offsetUnset( string $offset )

Unsets an offset

Unsets an offset

Parameters

$offset
offset to unset

Version

1.1

Since

1.1

Abstracting

ArrayAccess

Implementation of

ArrayAccess::offsetUnset()
public mixed
# offsetGet( string $offset )

Returns the value at specified offset

Returns the value at specified offset

Parameters

$offset
offset to retrieve

Returns

mixed

Version

1.1

Since

1.1

Abstracting

ArrayAccess

Implementation of

ArrayAccess::offsetGet()
public
# addValue( mixed $item )

Appends a value to the object

Appends a value to the object

This method is chainable.

Parameters

$item
value to set

Version

1.0

Since

1.0
public
# getIterator( )

Retrieve an external iterator.

Retrieve an external iterator.

Version

1.1

Since

1.0

Abstracting

IteratorAggregate

Implementation of

IteratorAggregate::getIterator()
Properties summary
private array $items

The array that holds all the items collected by the object.

The array that holds all the items collected by the object.

# array()
API documentation generated by ApiGen