WireArray::isValidItem()

Is the given item valid for storange in this array?

Template method that descending classes may use to validate items added to this WireArray

Usage

$bool = $wireArray->isValidItem(mixed $item);

Arguments

NameType(s)Description
$itemmixed

Item to test for validity

Return value

bool

True if item is valid and may be added, false if not


WireArray methods and properties

API reference based on ProcessWire core version 3.0.251