SelectableOptionArray::addByID()

Add by option ID

Usage

$false = $selectableOptionArray->addByID(int $id);

Arguments

NameType(s)Description
$idint

Return value

false SelectableOption

Returns option added on success or false on fail

Exceptions

Method can throw exceptions on error:

  • WireException


SelectableOptionArray methods and properties

API reference based on ProcessWire core version 3.0.251