Prado\Web\UI\WebControls\TMetaTagCollection::findIndexByID PHP 메소드

findIndexByID() 공개 메소드

Finds the lowest cardinal index of the meta tag whose id is the one being looked for.
public findIndexByID ( $id ) : integer
리턴 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;
    }