protected function getRowKey($id)
    {
        foreach ($this->getData() as $key => $data)
        {
            if ($data->id == $id)
            {
                return $key;
                break;
            }
        }
        throw new LazerException('No data found with ID: ' . $id);
    }
protected function getRowKey($id)
    {
        foreach ($this->getData() as $key => $data)
        {
            if ($data->id == $id)
            {
                return $key;
                break;
            }
        }
        throw new LazerException('No data found with ID: ' . $id);
    }
protected function getRowKey ( $ id ) { foreach ( $ this -> getData ( ) as $ key => $ data ) { if ( $ data -> id == $ id ) { return $ key ; break ; } } throw new LazerException ( 'No data found with ID: ' . $ id ) ; }
Returns array key of row with specified ID
@param integer $id Row ID
@return integer Row key
@throws LazerException If there's no data with that ID
Returns array key of row with specified ID