RepeaterPage::addStatus()

Add the given status to this repeater item

Repeater items combine statusOn with statusUnpublished to mean "new item pending publish" (see status notes in FieldtypeRepeater.module). So when unpublished status is added to an active (non-ready) item, this also removes statusOn. Without this, an item unpublished by addStatus() would show as "New" in the page editor and be published by its next save. To intentionally give an item the pending publish state, set the status directly or include statusOn explicitly in the added mask: Page::statusOn | Page::statusUnpublished.

Usage

$repeaterPage->addStatus($statusFlag);

Arguments

NameType(s)Description
$statusFlagint string

Status flag constant or string representation (hidden, locked, unpublished, etc.)

Return value

$this

Object instance it was called from (method supports fluent interface).

See Also


RepeaterPage methods and properties

API reference based on ProcessWire core version 3.0.275