本文整理汇总了PHP中Merchant::Merchant方法的典型用法代码示例。如果您正苦于以下问题:PHP Merchant::Merchant方法的具体用法?PHP Merchant::Merchant怎么用?PHP Merchant::Merchant使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Merchant
的用法示例。
在下文中一共展示了Merchant::Merchant方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Filter
$nfs_average = 0;
$creditcard = 0;
$creditcard_t = '';
$creditcard_average = '';
$email = '';
$emails = '';
$tutorial = '';
//Objects
$filter = new Filter();
$lender = new Lender();
$business = new Business();
$merchant = new Merchant();
$emailobj = new Email();
if (isset($_GET['id_merchant'])) {
$id_merchant = $_GET['id_merchant'];
$merchant->Merchant($id_merchant);
$filter->Filter($_GET['id_merchant']);
$type_business = $filter->getBusiness();
$foreclosure = $filter->getForeclosure();
$landlord = $filter->getLandlord();
$years = $filter->getYears();
$months = $filter->getMonths();
$total_months = $filter->getTotalMonths();
$bankstatements = $filter->getBankStatements();
$bank_average = $filter->getBankAverage();
$nfs_average = $filter->getNSF();
$creditcard = $filter->getCreditCard();
$creditcard_t = $filter->getCreditCard_T();
$creditcard_average = $filter->getCreditCardAverage();
$email = $filter->getEmail();
// obtenemos parametros
示例2: Merchant
$id_merchant = '';
$lead = '';
$name = '';
//Objects
$merchant = new Merchant();
$filter = new Filter();
if (isset($_POST['id_merchant']) && !is_numeric($_POST['id_merchant'])) {
$merchant->setLead($_POST['lead']);
$merchant->setName($_POST['name']);
$merchant->insertMerchant();
$lastmerchant = $merchant->getIDMerchant();
$filter->setIdMerchant($lastmerchant);
$filter->insertFilter();
}
if (isset($_GET['edit'])) {
$merchant->Merchant($_GET['edit']);
$id_merchant = $merchant->getIDMerchant();
$lead = $merchant->getLead();
$name = $merchant->getName();
}
if (isset($_POST['id_merchant']) && is_numeric($_POST['id_merchant'])) {
$merchant->setLead($_POST['lead']);
$merchant->setName($_POST['name']);
$merchant->updateMerchant();
header('Location: index.php');
}
if (isset($_GET['delete'])) {
$merchant->Merchant($_GET['delete']);
$merchant->deleteMerchant();
}
?>