本文整理匯總了PHP中Label::GetText方法的典型用法代碼示例。如果您正苦於以下問題:PHP Label::GetText方法的具體用法?PHP Label::GetText怎麽用?PHP Label::GetText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Label
的用法示例。
在下文中一共展示了Label::GetText方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$xml .= add_XML_value("credential_" . $credential_num++, $credential_array['credential']);
}
}
$xml .= "<project>";
$xml .= add_XML_value("id", $project_array['id']);
$xml .= add_XML_value("name", $project_array['name']);
$xml .= add_XML_value("emailbrokensubmission", $project_array['emailbrokensubmission']);
$labelavailableids = $Project->GetLabels(7);
// Get the labels for the last 7 days
$labelids = $LabelEmail->GetLabels();
$labelavailableids = array_diff($labelavailableids, $labelids);
foreach ($labelavailableids as $labelid) {
$xml .= "<label>";
$xml .= add_XML_value("id", $labelid);
$Label->Id = $labelid;
$xml .= add_XML_value("text", $Label->GetText());
$xml .= "</label>";
}
foreach ($labelids as $labelid) {
$xml .= "<labelemail>";
$xml .= add_XML_value("id", $labelid);
$Label->Id = $labelid;
$xml .= add_XML_value("text", $Label->GetText());
$xml .= "</labelemail>";
}
$xml .= "</project>";
$sql = "SELECT id,name FROM project";
if ($User->IsAdmin() == false) {
$sql .= " WHERE public=1 OR id IN (SELECT projectid AS id FROM user2project WHERE userid='{$userid}' AND role>0)";
}
$projects = pdo_query($sql);