本文整理汇总了PHP中assign::succession_plan_alert方法的典型用法代码示例。如果您正苦于以下问题:PHP assign::succession_plan_alert方法的具体用法?PHP assign::succession_plan_alert怎么用?PHP assign::succession_plan_alert使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类assign
的用法示例。
在下文中一共展示了assign::succession_plan_alert方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: assign
if ($users1[0] == "") {
echo $error_msg['cNoBossUnderBoss'];
include_once "footer.php";
exit;
}
$path = $common->path;
$xtemplate = $path . "templates/career/assign_succession_plan.html";
$file = $common->return_file_content($db_object, $xtemplate);
$pattern = "/<{boss_loopstart}>(.*?)<{boss_loopend}>/s";
preg_match($pattern, $file, $match);
$match = $match[0];
for ($a = 0; $a < count($users1); $a++) {
$boss_id = $users1[$a][user_id];
$boss_name = $common->name_display($db_object, $boss_id);
$str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match);
}
$file = preg_replace($pattern, $str, $file);
$file = $common->direct_replace($db_object, $file, $xArray);
echo $file;
}
}
$obj = new assign();
switch ($action) {
case NULL:
$obj->assign_plan($db_object, $common, $user_id, $fBoss_id, $error_msg);
break;
case "assign":
$obj->succession_plan_alert($db_object, $common, $user_id, $error_msg);
break;
}
include_once "footer.php";