public function getStatus($id = null)
    {
        if ($this->isSuccess()) {
            if (!$id) {
                $result = $this->getResult();
                return $result[0]['status'];
            }

            foreach ($this->getResult() as $row) {
                if ($row['id'] == $id) {
                    return $row['status'];
                }
            }
        }

        return false;
    }
public function getStatus($id = null)
    {
        if ($this->isSuccess()) {
            if (!$id) {
                $result = $this->getResult();
                return $result[0]['status'];
            }

            foreach ($this->getResult() as $row) {
                if ($row['id'] == $id) {
                    return $row['status'];
                }
            }
        }

        return false;
    }
public function getStatus ( $ id = null ) { if ( $ this -> isSuccess ( ) ) { if ( ! $ id ) { $ result = $ this -> getResult ( ) ; return $ result [ 0 ] [ 'status' ] ; } foreach ( $ this -> getResult ( ) as $ row ) { if ( $ row [ 'id' ] == $ id ) { return $ row [ 'status' ] ; } } } return false ; }
Get the status of a lead. If no lead ID is given, it returns the status of the first lead returned.

@param $id
@return bool
Get the status of a lead . If no lead ID is given it returns the status of the first lead returned .