本文整理匯總了PHP中Owner::setAgrees方法的典型用法代碼示例。如果您正苦於以下問題:PHP Owner::setAgrees方法的具體用法?PHP Owner::setAgrees怎麽用?PHP Owner::setAgrees使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Owner
的用法示例。
在下文中一共展示了Owner::setAgrees方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Owner
<?php
require_once 'class/HelperOfBailiff.php';
require_once 'class/Lock.php';
require_once 'class/LockMaster.php';
require_once 'class/Owner.php';
$owner = new Owner();
$owner->setIsPresent(true);
$owner->setAgrees(false);
$lock = new Lock();
$lock->setIsLocked(true);
$helperOfBailiff = new HelperOfBailiff();
$helperOfBailiff->order($owner, $lock);
echo ' 100: Kas uks on lukus?' . $lock->getIsLocked();
示例2: Owner
<?php
require 'error.php';
require_once 'Abi.php';
require_once 'Lock.php';
require_once 'LockMaster.php';
require_once 'Owner.php';
$owner = new Owner();
//kontroll
if (isset($_GET['valjatostmine'])) {
$buildResult = true;
if (isset($_GET['isOwnerPresent'])) {
$duEvict = false;
$owner->setIsPresent(true);
if (isset($_GET['isOwnerAgree'])) {
$owner->setAgrees(true);
} else {
$owner->setAgrees(false);
}
} else {
$duEvict = true;
$owner->setIsPresent(false);
if (isset($_GET['isOwnerReachable'])) {
$owner->setIsReachable(true);
if (isset($_GET['isOwnerAgree'])) {
$owner->setAgrees(true);
} else {
$owner->setAgrees(false);
}
} else {
$owner->setIsReachable(false);