本文整理汇总了PHP中ProjectModule::getProjectModuleByProject方法的典型用法代码示例。如果您正苦于以下问题:PHP ProjectModule::getProjectModuleByProject方法的具体用法?PHP ProjectModule::getProjectModuleByProject怎么用?PHP ProjectModule::getProjectModuleByProject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectModule
的用法示例。
在下文中一共展示了ProjectModule::getProjectModuleByProject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
$res["reason"] = "U have no power to Edit ID:" . $data['id'];
$db->closeDB();
die(json_encode($res));
}
} else {
$res["result"] = false;
$res["reason"] = "Project ID:" . $data['id'] . "Not Found!";
$db->closeDB();
die(json_encode($res));
}
$project->u_id = $_SESSION['user_info']['id'];
$project->m_id = $data['m_id'];
$project->name = htmlspecialchars($data['name'], ENT_QUOTES);
$project->discribe = htmlspecialchars($data['discribe'], ENT_QUOTES);
$project->exp_url = dirname($_SERVER["HTTP_REFERER"]) . "/" . "rat.php?t=" . $project->ticket;
if ($projectModule->getProjectModuleByProject($project->id)) {
$projectModule->module_id = $data['m_id'];
$projectModule->ticket = $project->ticket;
$projectModule->module_path = $module->m_path;
$projectModule->config = json_encode($data['config']);
if ($project->updateProject() && $projectModule->updateProjectModule()) {
$res['result'] = true;
$res['reason'] = 'Edit Project Success!';
} else {
$res['reason'] = 'Edit Project Failed!';
}
} else {
$res['reason'] = 'the Module not exists!';
}
}
}