本文整理匯總了PHP中Invitation::loadEmails方法的典型用法代碼示例。如果您正苦於以下問題:PHP Invitation::loadEmails方法的具體用法?PHP Invitation::loadEmails怎麽用?PHP Invitation::loadEmails使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Invitation
的用法示例。
在下文中一共展示了Invitation::loadEmails方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: strcmp
$withCode = 0 == strcmp(PARAM_WITHCODE, swwat_parse_string(html_entity_decode($_POST[PARAM_WITHCODE])));
$uniqueCode = 0 == strcmp(PARAM_UNIQUE, swwat_parse_string(html_entity_decode($_POST[PARAM_UNIQUE])));
$errorMessage = "";
// invite or upload file button?
$invite = isset($_POST[PARAM_SAVE]);
$upload = isset($_POST[PARAM_UPLOAD]);
//
// todo should be _enum(, get if we ever have anything other than 5degrees
// $uploadFileType = swwat_parse_string(html_entity_decode($_POST[PARAM_UPLOADFILETYPE]));
if ($invite) {
// get emails typed in
$emails = swwat_parse_string(html_entity_decode($_POST[PARAM_EMAIL]));
$emails = preg_replace('/\\s+/', ':', $emails);
logMessage("message", $emails);
// parse via whitespace
$invitationArray = Invitation::loadEmails($emails);
$existingWorkers = Worker::selectExpo($expo->expoid);
$checkWorkers = array();
foreach ($existingWorkers as $worker) {
$checkWorkers[] = $worker->workerid;
}
$existingWorkers = NULL;
$workerArray = array();
$unknownArray = array();
$index = 0;
foreach ($invitationArray as $invitation) {
$index += 1;
try {
if (!empty($invitation->email)) {
$worker = Worker::selectUsername($invitation->email);
if (!is_null($worker)) {