Prado\Web\UI\WebControls\TAccordionViewCollection::findIndexByID PHP Method

findIndexByID() public method

Finds the index of the accordion view whose ID is the same as the one being looked for.
public findIndexByID ( $id ) : integer
return integer the index of the accordion view found, -1 if not found.
    public function findIndexByID($id)
    {
        foreach ($this as $index => $view) {
            if ($view->getID(false) === $id) {
                return $index;
            }
        }
        return -1;
    }
TAccordionViewCollection