本文整理汇总了PHP中erLhcoreClassInstance::instanceExists方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassInstance::instanceExists方法的具体用法?PHP erLhcoreClassInstance::instanceExists怎么用?PHP erLhcoreClassInstance::instanceExists使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassInstance
的用法示例。
在下文中一共展示了erLhcoreClassInstance::instanceExists方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
header('content-type: application/json; charset=utf-8');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
if ((string) $Params['user_parameters']['address'] != '' && erLhcoreClassInstance::instanceExists((string) $Params['user_parameters']['address']) == false) {
if (isset($_GET['callback'])) {
echo $_GET['callback'] . '(' . json_encode(false) . ')';
} else {
echo 'true';
}
} else {
if (isset($_GET['callback'])) {
echo $_GET['callback'] . '(' . json_encode(true) . ')';
} else {
echo 'false';
}
}
exit;
示例2:
if ($form->hasValidData('DateFormat')) {
$Instance->date_format = $form->DateFormat;
}
if ($form->hasValidData('DateHourFormat')) {
$Instance->date_hour_format = $form->DateHourFormat;
}
if ($form->hasValidData('DateAndHourFormat')) {
$Instance->date_date_hour_format = $form->DateAndHourFormat;
}
if ($form->hasValidData('UserTimeZone')) {
$Instance->time_zone = $form->UserTimeZone;
}
if ($form->hasValidData('FrontSiteaccess')) {
$Instance->siteaccess = $form->FrontSiteaccess;
}
if ($form->hasValidData('Address') && erLhcoreClassInstance::instanceExists($form->Address) == false) {
$Instance->address = $form->Address;
} else {
$Errors[] = 'Instance exists';
}
if ($form->hasValidData('Email')) {
$Instance->email = $form->Email;
} else {
$Errors[] = 'Please enter valid e-mail';
}
if ($form->hasValidData('Request')) {
$Instance->request = $form->Request;
}
if ($form->hasValidData('RequestUsed')) {
$Instance->request_used = $form->RequestUsed;
}