本文整理匯總了PHP中ProjectManager::getProjectWithProjectName方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProjectManager::getProjectWithProjectName方法的具體用法?PHP ProjectManager::getProjectWithProjectName怎麽用?PHP ProjectManager::getProjectWithProjectName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProjectManager
的用法示例。
在下文中一共展示了ProjectManager::getProjectWithProjectName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: count
echo $project_id;
?>
"><img src="./public_html/img/Dredging/projectImg/dt_1.jpg" alt=""/></a>
<?php
}
?>
<div class="projectName-overlay"><a href="./project_detail.php?project_id=<?php
echo $project_id;
?>
"><span><?php
echo $project_name;
?>
</span></a></div>
<?php
$projectSameName = $projectMgr->getProjectWithProjectName($project_name);
$numberWithSameName = count($projectSameName);
if ($numberWithSameName > 1) {
?>
<div class="project-location-overlay">
<?php
foreach ($projectSameName as $eachProject) {
$projectLocation = $eachProject['size'];
$projectId = $eachProject['project_id'];
?>
<h4><a href="./project_detail.php?project_id=<?php
echo $projectId;
?>
"> <?php
echo $projectLocation;