Prado\Collections\TListItemCollection::findItemByValue PHP Method

findItemByValue() public method

Finds the item whose value is the one being looked for.
public findItemByValue ( $value, $includeDisabled = true ) : TListItem
return Prado\Web\UI\WebControls\TListItem the item found, null if not found.
    public function findItemByValue($value, $includeDisabled = true)
    {
        if (($index = $this->findIndexByValue($value, $includeDisabled)) >= 0) {
            return $this->itemAt($index);
        } else {
            return null;
        }
    }