本文整理汇总了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);