本文整理汇总了PHP中Planning::checkAvailability方法的典型用法代码示例。如果您正苦于以下问题:PHP Planning::checkAvailability方法的具体用法?PHP Planning::checkAvailability怎么用?PHP Planning::checkAvailability使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Planning
的用法示例。
在下文中一共展示了Planning::checkAvailability方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: User
if (($uid = Session::getLoginUserID()) && !Session::haveRight("planning", Planning::READALL)) {
$_GET["uID"] = $uid;
} else {
$_GET["uID"] = 0;
}
}
if (!isset($_GET["gID"])) {
$_GET["gID"] = 0;
}
if (!isset($_GET["limititemtype"])) {
$_GET["limititemtype"] = "";
}
// Normal call via $_GET
if (isset($_GET['checkavailability'])) {
Html::popHeader(__('Availability'));
Planning::checkAvailability($_GET);
Html::popFooter();
} else {
if (isset($_GET['genical'])) {
if (isset($_GET['token'])) {
// Check user token
$user = new User();
if ($user->getFromDBByToken($_GET['token'])) {
if (isset($_GET['entities_id']) && isset($_GET['is_recursive'])) {
$user->loadMinimalSession($_GET['entities_id'], $_GET['is_recursive']);
}
//// check if the request is valid: rights on uID / gID
// First check mine : user then groups
$ismine = false;
if ($user->getID() == $_GET["uID"]) {
$ismine = true;
示例2: User
if (!isset($_GET["limititemtype"])) {
$_GET["limititemtype"] = "";
}
// Normal call via $_GET
if (isset($_GET['checkavailability'])) {
Html::popHeader(__('Availability'));
if (!isset($_GET["begin"])) {
$_GET["begin"] = "";
}
if (!isset($_GET["end"])) {
$_GET["end"] = "";
}
if (!isset($_GET["users_id"])) {
$_GET["users_id"] = "";
}
Planning::checkAvailability($_GET['users_id'], $_GET['begin'], $_GET['end']);
Html::popFooter();
} else {
if (isset($_GET['genical'])) {
if (isset($_GET['token'])) {
// Check user token
$user = new User();
if ($user->getFromDBByToken($_GET['token'])) {
if (isset($_GET['entities_id']) && isset($_GET['is_recursive'])) {
$user->loadMinimalSession($_GET['entities_id'], $_GET['is_recursive']);
}
//// check if the request is valid: rights on uID / gID
// First check mine : user then groups
$ismine = false;
if ($user->getID() == $_GET["uID"]) {
$ismine = true;