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