本文整理匯總了PHP中Quote::getQuotes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Quote::getQuotes方法的具體用法?PHP Quote::getQuotes怎麽用?PHP Quote::getQuotes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Quote
的用法示例。
在下文中一共展示了Quote::getQuotes方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
if (isset($_POST['ajax_companyid']) && isset($_POST['ajax_exchid'])) {
$quotes = Quote::getQuotes($_POST['ajax_companyid'], $_POST['ajax_exchid']);
if (empty($quotes)) {
echo 'Error 402';
} else {
echo json_encode($quotes);
}
}
示例2: Pos_Date
<?php
require_once '../helpers/helpers.inc.php';
require_once '../helpers/autoload.inc.php';
$date = new Pos_Date();
$now = $date->mysql;
$exchanges = Exchange::getExchanges();
$companies = Company::getCompanies();
$quotes = Quote::getQuotes();
$currencies = Currency::getCurrencies();
$missing = null;
$errors = null;
if (isset($_POST['submit_order'])) {
$required = array('ordate', 'ortype', 'exchange', 'company', 'quote', 'amount', 'amountlot', 'currency', 'price', 'sumtotal', 'brokerrevenue');
$valid = new Pos_Validator($required);
$valid->isInt('amount', 1);
$valid->isInt('amountlot', 1);
$valid->isFloat('price');
$valid->isFloat('sumtotal');
$valid->isFloat('brokerrevenue');
$valid->isFloat('stopprice');
$valid->isFloat('takeprice');
$valid->removeTags('comment');
$valid->noFilter('ordate');
$valid->noFilter('ortype');
$valid->noFilter('exchange');
$valid->noFilter('company');
$valid->noFilter('quote');
$valid->noFilter('currency');
//$valid->useEntities('comment');
$validate = $valid->validateInput();