本文整理匯總了PHP中DAL::selectUniqueIdsByPersonId方法的典型用法代碼示例。如果您正苦於以下問題:PHP DAL::selectUniqueIdsByPersonId方法的具體用法?PHP DAL::selectUniqueIdsByPersonId怎麽用?PHP DAL::selectUniqueIdsByPersonId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DAL
的用法示例。
在下文中一共展示了DAL::selectUniqueIdsByPersonId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: UserException
}
$dal->updatePerson($person);
$message = 'Saved.';
} else {
if (isset($_POST['subscribe'])) {
$person['person_subscribe'] = 'y';
$dal->updatePerson($person);
$message = 'Subscribed.';
} else {
if (isset($_POST['unsubscribe'])) {
$person['person_subscribe'] = 'n';
$dal->updatePerson($person);
$message = 'Unsubscribed.';
} else {
if (isset($_POST['delete'])) {
if (count($dal->selectUniqueIdsByPersonId($person['person_id'])) > 0) {
throw new UserException('Delete unique id ranges first.');
}
$dal->deletePerson($person['person_id']);
if ($user['person_is_moderator'] === 'y') {
header('Location: people');
} else {
header('Location: .');
}
exit;
} else {
if (isset($_POST['send_verification_email'])) {
$url = "http://" . $_SERVER['HTTP_HOST'] . "/profile?person_id=" . $person['person_id'] . "&person_email_shared_secret=" . $person['person_email_shared_secret'] . '&verify';
$name = formatPersonName($person);
$email = formatPersonEmail($person);
$subject = "Register as OpenLCB User";