本文整理匯總了PHP中Rights::clearRights方法的典型用法代碼示例。如果您正苦於以下問題:PHP Rights::clearRights方法的具體用法?PHP Rights::clearRights怎麽用?PHP Rights::clearRights使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Rights
的用法示例。
在下文中一共展示了Rights::clearRights方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delAssignData
function delAssignData($index, $postArr, $getArr)
{
switch ($index) {
case 'BBS':
$cashbensal = new CashBenSalary();
$arr[0] = $postArr['chkdel'];
$size = count($arr[0]);
for ($c = 0; $size > $c; $c++) {
if ($arr[0][$c] != NULL) {
$arr[1][$c] = $getArr['id'];
}
}
$cashbensal->delCashBenefits($arr);
break;
case 'NBS':
$noncashbensal = new NonCashBenSalary();
$arr[0] = $postArr['chkdel'];
$size = count($arr[0]);
for ($c = 0; $size > $c; $c++) {
if ($arr[0][$c] != NULL) {
$arr[1][$c] = $getArr['id'];
}
}
$noncashbensal->delCashBenefits($arr);
break;
case 'DQA':
$desqual = new DesQualification();
$arr[1] = $postArr['chkdel'];
$size = count($arr[1]);
for ($c = 0; $size > $c; $c++) {
if ($arr[1][$c] != NULL) {
$arr[0][$c] = $getArr['id'];
}
}
$desqual->delJDQual($arr);
break;
case 'DQS':
$desqualsub = new DesQualSubject();
$arr[1] = $postArr['chkdel'];
$size = count($arr[1]);
for ($c = 0; $size > $c; $c++) {
if ($arr[1][$c] != NULL) {
$arr[0][$c] = $getArr['id'];
$arr[2][$c] = $getArr['QUA'];
}
}
$desqualsub->delQuaSub($arr);
break;
case 'SGR':
$salcurdet = new SalCurDet();
$arr[1] = $postArr['chkdel'];
$size = count($arr[1]);
for ($c = 0; $size > $c; $c++) {
if ($arr[1][$c] != NULL) {
$arr[0][$c] = $getArr['id'];
}
}
$salcurdet->delSalCurDet($arr);
break;
case 'RTG':
$ratgrd = new RatingGrade();
$arr[0] = $postArr['chkdel'];
for ($c = 0; count($arr[0]) > $c; $c++) {
if ($arr[0][$c] != NULL) {
$arr[1][$c] = $getArr['id'];
}
}
$ratgrd->delRatGrd($arr);
break;
case 'UGR':
$urights = new Rights();
$urights->clearRights($getArr['id']);
break;
}
}
示例2: delAssignData
function delAssignData($index, $postArr, $getArr)
{
switch ($index) {
case 'UGR':
$urights = new Rights();
$urights->clearRights($getArr['id']);
break;
}
}