Class \Prado\Collections\TListItemCollection
TListItemCollection class.
TListItemCollection maintains a list of TListItem for TListControl.
Class hierarchy
- \Prado\Collections\TListItemCollection
- \Prado\Collections\TList implements IteratorAggregate, ArrayAccess, Countable
- \Prado\TComponent
Since: 3.0
public
|
createListItem([int $index = -1 ]) : TListItem
Creates a list item object.
This method may be overriden to provide a customized list item object. |
public
|
findIndexByText(string $text[, bool $includeDisabled = true ]) : int
Finds the lowest cardinal index of the item whose text is the one being looked for.
|
public
|
findIndexByValue(string $value[, bool $includeDisabled = true ]) : int
Finds the lowest cardinal index of the item whose value is the one being looked for.
|
public
|
findItemByText(string $text[, bool $includeDisabled = true ]) : null|TListItem
Finds the item whose text is the one being looked for.
|
public
|
findItemByValue(string $value[, bool $includeDisabled = true ]) : null|TListItem
Finds the item whose value is the one being looked for.
|
public
|
|
public
|
loadState(null|array<string|int, mixed> $state) : mixed
Loads state into every item in the collection.
This method should only be used by framework and control developers. |
public
|
saveState() : null|array<string|int, mixed>
Saves state of items.
This method should only be used by framework and control developers. |
protected
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |