本文整理汇总了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())]);
}
}