本文整理汇总了PHP中client::deleteClient方法的典型用法代码示例。如果您正苦于以下问题:PHP client::deleteClient方法的具体用法?PHP client::deleteClient怎么用?PHP client::deleteClient使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类client
的用法示例。
在下文中一共展示了client::deleteClient方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stylist
function test_deleteClient()
{
//Arrange
$name = "Tessa";
$id = null;
$test_stylist = new stylist($name, $id);
$test_stylist->save();
$test_stylist_id = $test_stylist->getId();
$name = "Mai";
$description = "Scary";
$visits = 3;
$name2 = "Doory";
$description2 = "Not worth it.";
$visits2 = 4;
$test_client = new client($name, $test_stylist_id, $id, $visits, $description);
$test_client2 = new client($name2, $test_stylist_id, $id, $visits2, $description2);
$test_client->save();
$test_client2->save();
//Act
$test_client->deleteClient();
//Assert
$this->assertEquals([$test_client2], client::getAll());
}
示例2: client
<div class="row">
<div class="portlet portlet-default">
<div class="portlet-heading">
<div class="portlet-title">
<h4>عرض العملاء </h4>
</div>
<div class="clearfix"></div>
<?php
if (isset($_GET['client_id']) && $_GET['client_id'] != '') {
echo 'jdsakfjskljf';
$id = $_GET['client_id'];
$client_obj = new client();
$result = $client_obj->deleteClient($con, $id);
if ($result == 'done') {
echo 'تم الحذف';
// header("refresh:1;url=shoq.php");
} else {
echo 'من فضلك قم بحذف الطلبات الخاصه بهذا العميل ';
}
}
?>
</div>
<div class="portlet-body">
<div class="table-responsive">
<table id="example-table" class="table table-striped table-bordered table-hover table-green">
<thead>