本文整理汇总了PHP中DAOFactory::getManagementitDAO方法的典型用法代码示例。如果您正苦于以下问题:PHP DAOFactory::getManagementitDAO方法的具体用法?PHP DAOFactory::getManagementitDAO怎么用?PHP DAOFactory::getManagementitDAO使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAOFactory
的用法示例。
在下文中一共展示了DAOFactory::getManagementitDAO方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: searchBoss
public function searchBoss($val1)
{
include '../../model/generated/include_dao.php';
$coordinatorList = DAOFactory::getCoordinatorDAO()->queryByCoordinatorName($val1);
foreach ($coordinatorList as $coordinator) {
}
$bossList = DAOFactory::getBossDAO()->load($coordinator->getBossBossId());
$headshipList = DAOFactory::getHeadshipitDAO()->load($bossList->getHeadshipITHeadshipITId());
$managememtList = DAOFactory::getManagementitDAO()->load($headshipList->getManagementITManagementITId());
$directionList = DAOFactory::getDirectionitDAO()->load($managememtList->getDirectionITDirectionITId());
echo json_encode(array("boss" => $bossList->getBossName(), "headship" => $headshipList->getHeadshipITName(), "management" => $managememtList->getManagementITName(), "direction" => $directionList->getDirectionITName()));
}
示例2: foreach
<th><center>Direction IT</center></th>
</tr>
</thead>
<tbody>
<?php
include 'model/generated/include_dao.php';
$changeList = DAOFactory::getAlterationDAO()->queryAll();
$managementitList = DAOFactory::getManagementitDAO()->queryAll();
$directionList = DAOFactory::getDirectionitDAO()->queryAll();
foreach ($changeList as $change) {
echo '<tr class="success">' . '<td>' . $change->getChangeIdSM() . '</td>' . '<td>' . $change->getChangeType() . '</td>' . '<td>' . $change->getShortDescription() . '</td>' . '<td>' . $change->getImpact() . '</td>' . '<td>' . $change->getAffectation() . '</td>' . '<td>' . $change->getScheduledStart() . '</td>' . '<td>' . $change->getRollbackStart() . '</td>' . '<td>' . $change->getRollbackEnd() . '</td>' . '<td>' . $change->getScheduledEnd() . '</td>' . '<td>' . $change->getStateExecution() . '</td>';
$appList = DAOFactory::getApplicationorinfrastructureDAO()->load($change->getApplicationOrInfrastructureApplicationOrInfrastructureId());
$coordinatorList = DAOFactory::getCoordinatorDAO()->load($change->getCoordinatorCoordinatorId());
$bossList = DAOFactory::getBossDAO()->load($change->getBossBossId());
$headshipList = DAOFactory::getHeadshipitDAO()->load($change->getHeadshipITHeadshipITId());
$managementList = DAOFactory::getManagementitDAO()->load($change->getManagementITManagementITId());
$directionList = DAOFactory::getDirectionitDAO()->load($change->getDirectionITDirectionITId());
echo '<td>' . $appList->getApplicationOrInfrastructureName() . '</td>' . '<td>' . $coordinatorList->getCoordinatorName() . '</td>' . '<td>' . $bossList->getBossName() . '</td>' . '<td>' . $headshipList->getHeadshipITName() . '</td>' . '<td>' . $managementList->getManagementITName() . '</td>' . '<td>' . $directionList->getDirectionITName() . '</td>' . '</tr>';
}
?>
</tbody>
</table>
</div>
<div class="top-big-link">
<a class="btn btn-link-1" href="index.php" data-modal-id="modal-register"> <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back</a>
</div>
<div id="foot">
<p>Developed for<a href="http://www.telefonica.co/" target="_blank"> Telefonica</a>, By Cristian David Franco Garcia.
</div>
</div>
</div>
示例3: Alteration
<?php
include '../../model/generated/include_dao.php';
$appList = DAOFactory::getApplicationorinfrastructureDAO()->queryByApplicationOrInfrastructureName($_POST["applicationOrInfrastructure"]);
$coordinatorList = DAOFactory::getCoordinatorDAO()->queryByCoordinatorName($_POST["coordinator"]);
$bossList = DAOFactory::getBossDAO()->queryByBossName($_POST["boss"]);
$headshipList = DAOFactory::getHeadshipitDAO()->queryByHeadshipITName($_POST["headship"]);
$managementList = DAOFactory::getManagementitDAO()->queryByManagementITName($_POST["management"]);
$directionList = DAOFactory::getDirectionitDAO()->queryByDirectionITName($_POST["direction"]);
$change = new Alteration();
$change->setChangeIdSM($_POST["changeId"]);
$change->setChangeType($_POST["type"]);
$change->setShortDescription($_POST["shortDescription"]);
$change->setImpact($_POST["impact"]);
$change->setAffectation($_POST["affectation"]);
$change->setScheduledStart($_POST["scheduledStartDate"] . " " . $_POST["scheduledStartTime"] . ":00");
$change->setRollbackStart($_POST["rollbackStartDate"] . " " . $_POST["rollbackStartTime"] . ":00");
$change->setRollbackEnd($_POST["rollbackEndDate"] . " " . $_POST["rollbackEndTime"] . ":00");
$change->setScheduledEnd($_POST["scheduledEndDate"] . " " . $_POST["scheduledEndTime"] . ":00");
$change->setStateExecution($_POST["stateExecution"]);
$change->setApplicationOrInfrastructureApplicationOrInfrastructureId($appList[0]->getApplicationOrInfrastructureId());
$change->setCoordinatorCoordinatorId($coordinatorList[0]->getCoordinatorId());
$change->setBossBossId($bossList[0]->getBossId());
$change->setHeadshipITHeadshipITId($headshipList[0]->getHeadshipITId());
$change->setManagementITManagementITId($managementList[0]->getManagementITId());
$change->setDirectionITDirectionITId($directionList[0]->getDirectionITId());
$change->setStateChange(1);
$change->setChangeManagerIdchangeManager(1);
DAOFactory::getAlterationDAO()->update($change);
unset($change);
echo "<script>alert ('" . $_POST["changeId"] . " change was updated successfully .'); window.location='../../index.php';</script>";