public static function getSearchResultsTotal($url = false)
    {
        $url = parent::getUrl($url);
        $url = sprintf(Config\Services::GOOGLE_APISEARCH_URL, 1, $url);

        $ret = static::_getPage($url);

        $obj = Helper\Json::decode($ret);
        return !isset($obj->responseData->cursor->estimatedResultCount)
               ? parent::noDataDefaultValue()
               : intval($obj->responseData->cursor->estimatedResultCount);
    }
public static function getSearchResultsTotal($url = false)
    {
        $url = parent::getUrl($url);
        $url = sprintf(Config\Services::GOOGLE_APISEARCH_URL, 1, $url);

        $ret = static::_getPage($url);

        $obj = Helper\Json::decode($ret);
        return !isset($obj->responseData->cursor->estimatedResultCount)
               ? parent::noDataDefaultValue()
               : intval($obj->responseData->cursor->estimatedResultCount);
    }
public static function getSearchResultsTotal ( $ url = false ) { $ url = parent :: getUrl ( $ url ) ; $ url = sprintf ( Config \ Services :: GOOGLE_APISEARCH_URL , 1 , $ url ) ; $ ret = static :: _getPage ( $ url ) ; $ obj = Helper \ Json :: decode ( $ ret ) ; return ! isset ( $ obj -> responseData -> cursor -> estimatedResultCount ) ? parent :: noDataDefaultValue ( ) : intval ( $ obj -> responseData -> cursor -> estimatedResultCount ) ; }
Returns total amount of results for any Google search,
requesting the deprecated Websearch API.

@param    string    $url    String, containing the query URL.
@return   integer           Returns the total search result count.
Returns total amount of results for any Google search requesting the deprecated Websearch API .