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

findIndexByID() public method

Finds the lowest cardinal index of the meta tag whose id is the one being looked for.
public findIndexByID ( $id ) : integer
return integer the index of the meta tag found, -1 if not found.
    public function findIndexByID($id)
    {
        $index = 0;
        foreach ($this as $item) {
            if ($item->getID() === $id) {
                return $index;
            }
            $index++;
        }
        return -1;
    }