Search failure.
';
// Set up our string format templates
$img = '
';
$bold = '%s';
$fromUser = '%s ';
$feed = '';
// Extrude some markup for each result
$foundQty = 0;
foreach ($searchResults->results as $result)
{
$foundQty++;
// Replace any @replies or links with hrefs:
$twitterText = $result->text;
$twitterText = preg_replace("#(^|[\n ])@([^ \'\"\t\n\r<]*)#ise", "'\\1@\\2'", $twitterText);
$twitterText = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1\\2'", $twitterText);
$twitterText = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#ise", "'\\1\\2'", $twitterText);
// Basically undocumented behavior, but for now you can get at profile images
// securely using https://si[n] instead of http://a[n] addresses. See:
// http://code.google.com/p/twitter-api/issues/detail?id=2175
// http://code.google.com/p/twitter-api/issues/detail?id=2006
$image_url = str_replace('http://a', 'https://si', $result->profile_image_url);
// Take the profile image, the from user and the created date,
// throw some HTML blobs around them:
$feed .= ''
. '' . sprintf($img, $image_url) . ' | '
. '' . sprintf($fromUser, $result->from_user, $result->from_user)
. $twitterText
. ' ' . $result->created_at . ''
. ' | '
. '
';
if ($foundQty >= $qty) {
break;
}
}
$class = htmlspecialchars(static::$tableClass);
return "";
}
}