本文整理匯總了PHP中Browser::bidding方法的典型用法代碼示例。如果您正苦於以下問題:PHP Browser::bidding方法的具體用法?PHP Browser::bidding怎麽用?PHP Browser::bidding使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Browser
的用法示例。
在下文中一共展示了Browser::bidding方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: action_index
public function action_index($page = null)
{
$data['table'] = null;
try {
$browser = new Browser();
$data['table'] = $browser->bidding($page);
} catch (BrowserLoginException $e) {
Session::set_flash('alert', ['status' => 'danger', 'message' => e("Login error: " . $e->getMessage())]);
} catch (ParserException $e) {
Session::set_flash('alert', ['status' => 'danger', 'message' => e("Parser error: " . $e->getMessage())]);
}
$this->template->title = 'Bidding list';
$this->template->content = View::forge('admin/bidding/index', $data);
}
示例2: get_bidding
public function get_bidding()
{
$p = \Input::get('page');
try {
$browser = new Browser();
$result = $browser->bidding($p);
// $result['username'] = \Config::get('my.yahoo.user_name');
// $result = ['auctions' => [
// 'aaaa', 'dddddd'
// ]];
$this->response(['status_code' => $this->_status_code['success'], 'result' => $result]);
} catch (BrowserLoginException $e) {
$this->response(['status_code' => $this->_status_code['failed'], 'message' => e("Login error: " . $e->getMessage())]);
} catch (ParserException $e) {
$this->response(['status_code' => $this->_status_code['failed'], 'message' => e("Parser error: " . $e->getMessage())]);
}
}