3ev Core Wordpress library API
  • Namespace
  • Class

Namespaces

  • Tev
    • Application
      • Bootstrap
    • Author
      • Model
    • Contracts
    • Database
      • CustomTables
    • Field
      • Model
      • Util
    • Plugin
      • Action
      • Shortcode
    • Post
      • Model
      • Repository
    • Taxonomy
      • Model
      • Repository
    • Term
      • Model
      • Repository
    • Util
    • View
      • Exception
  • None

Classes

  • AbstractField
  • AuthorField
  • BasicField
  • DateField
  • FileField
  • FlexibleContentField
  • GoogleMapField
  • ImageField
  • NullField
  • NumberField
  • PostField
  • RepeaterField
  • SelectField
  • TaxonomyField

Class RepeaterField

Repeater field.

An iterable field which provides access to underlying grouped sets of fields.

Tev\Field\Model\AbstractField implements Tev\Contracts\WordpressWrapperInterface
Extended by Tev\Field\Model\RepeaterField implements ArrayAccess, Iterator, Countable

Direct known subclasses

Tev\Field\Model\FlexibleContentField

Namespace: Tev\Field\Model
Located at Tev/Field/Model/RepeaterField.php

Methods summary

public
# __construct( array $base, Tev\Field\Factory $fieldFactory )

Constructor.

Constructor.

Parameters

$base
Repeater field data
$fieldFactory
Field factory

Overrides

Tev\Field\Model\AbstractField::__construct
public integer
# getValue( )

Shows the number of items in the repeater.

Shows the number of items in the repeater.

Returns

integer
public integer
# count( )

Get the number of items in the repeater.

Get the number of items in the repeater.

Returns

integer

Implementation of

Countable::count()
public Tev\Field\Util\FieldGroup
# current( )

Get the current repeater item.

Get the current repeater item.

Returns

Tev\Field\Util\FieldGroup

Implementation of

Iterator::current()
public integer
# key( )

Get the current iteration key.

Get the current iteration key.

Returns

integer

Implementation of

Iterator::key()
public
# next( )

Advance to the next position.

Advance to the next position.

Implementation of

Iterator::next()
public
# rewind( )

Rewind to the beginning.

Rewind to the beginning.

Implementation of

Iterator::rewind()
public boolean
# valid( )

Check if current position is valid.

Check if current position is valid.

Returns

boolean

Implementation of

Iterator::valid()
public boolean
# offsetExists( mixed $offset )

Required for \ArrayAccess.

Required for \ArrayAccess.

Parameters

$offset
Array offset

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public mixed
# offsetGet( mixed $offset )

Required for \ArrayAccess.

Required for \ArrayAccess.

Parameters

$offset
Array offset

Returns

mixed

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( mixed $offset, mixed $value )

Required for \ArrayAccess.

Required for \ArrayAccess.

Parameters

$offset
Array offset
$value
Value to set

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( mixed $offset )

Required for \ArrayAccess.

Required for \ArrayAccess.

Parameters

$offset
Array offset

Implementation of

ArrayAccess::offsetUnset()

Methods inherited from Tev\Field\Model\AbstractField

__toString(), getBaseObject(), getKey(), getName(), val()

Properties summary

protected Tev\Field\Factory $fieldFactory

Field factory.

Field factory.

#
protected integer $position

Current iteration position.

Current iteration position.

#

Properties inherited from Tev\Field\Model\AbstractField

$base

3ev Core Wordpress library API API documentation generated by ApiGen