我是 Zend 框架的新手。我正在开发一个应用程序,通过使用类(我添加到Zend/Mail/Storage/Imap.php
)搜索 Gmail 收件箱
/**
* do a search request
*
* This method is currently marked as internal as the API might change and is not
* safe if you don't take precautions.
*
* @internal
* @return array message ids
*/
public function search(array $params)
{
$response = $this->requestAndResponse('SEARCH', $params);
if (!$response) {
return $response;
}
foreach ($response as $ids) {
if ($ids[0] == 'SEARCH') {
array_shift($ids);
return $ids;
}
}
return array();
}
我这样称呼它:
$searchresults = $storage->search(array('search_terms'));
但是每次我尝试运行它时,它都会显示一个错误:
PHP 致命错误:在第 655 行的 /public_html/test06/Zend/Mail/Storage/Imap.php 中调用未定义的方法 Zend_Mail_Storage_Imap::requestAndResponse()