當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Languages::Find方法代碼示例

本文整理匯總了PHP中Languages::Find方法的典型用法代碼示例。如果您正苦於以下問題:PHP Languages::Find方法的具體用法?PHP Languages::Find怎麽用?PHP Languages::Find使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Languages的用法示例。


在下文中一共展示了Languages::Find方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getJobDescription

    public function getJobDescription($req)
    {
        $html = "";
        $jobTitle = new JobTitles();
        $jobTitle = $jobTitle->Find('id = ?', array($req));
        $jobTitleNames = new JobTitlesNames();
        $jobTitleNames = $jobTitleNames->Find('id = ?', array($jobTitle[0]->name));
        $reportingTo = new JobTitlesNames();
        $reportingTo = $reportingTo->Find('id = ?', array($jobTitle[0]->reporting_to));
        $department = new CompanyStructures();
        $department = $department->Find('id = ?', array($jobTitle[0]->department));
        $education = new Educations();
        $education = $education->Find('id  = ?', array($jobTitle[0]->education));
        $generalduites = json_decode($jobTitle[0]->general_duties);
        foreach ($generalduites as $generalduty) {
            $duties = new Duties();
            $duty = $duties->Find('id = ?', array($generalduty));
            $general[] = $duty[0]->name . ':' . $duty[0]->description . ',<br>';
        }
        $general = implode(',', $general);
        $stratgicduites = json_decode($jobTitle[0]->strategic_duties);
        foreach ($stratgicduites as $stratgicduty) {
            $duties = new Duties();
            $duty = $duties->Find('id = ?', array($stratgicduty));
            $stratgic[] = $duty[0]->name . ':' . $duty[0]->description . ',<br>';
        }
        $stratgic = implode(',', $stratgic);
        $technicalduties = json_decode($jobTitle[0]->technical_duties);
        foreach ($technicalduties as $technicalduty) {
            $duties = new Duties();
            $duty = $duties->Find('id = ?', array($technicalduty));
            $technical[] = $duty[0]->name . ':' . $duty[0]->description . ',<br>';
        }
        $technical = implode(',', $technical);
        $skills = json_decode($jobTitle[0]->skills);
        foreach ($skills as $skill) {
            $skill1 = new Skills();
            $skill2 = $skill1->Find('id = ?', array($skill));
            $allSkills[] = $skill2[0]->name;
        }
        $allSkills = implode(',', $allSkills);
        $languages = json_decode($jobTitle[0]->language);
        foreach ($languages as $language) {
            $lang = new Languages();
            $langs = $lang->Find('id = ?', array($language));
            $allLangs[] = $langs[0]->name;
        }
        $allLanguages = implode(',', $allLangs);
        $html .= '<style>
            #color{
            background-color: #365f91 !important;
            }
            </style>
       ';
        $html .= '<h2 style="margin-left: 275px;"><b>' . $jobTitleNames[0]->name . '</b></h2>
<h2 style="margin-left: 275px;"><b>Code: ' . $jobTitle[0]->code . '</b></p>
<h4 id="color" style="background-color: #365f91 !important;color: white !important;">Job Organizational Context</h4>
<table border="1" cellpadding="0" cellspacing="0" style="margin-left: 123px;width: 75%;">
	<tbody>
		<tr>
			<td>
			<p><b>Department</b></p>
			</td>
			<td>
			<p>' . $department[0]->title . '</p>
			</td>
			<td>
			<p><b>Section</b></p>
			</td>
			<td>
			<p>' . $department[0]->title . '</p>
			</td>
		</tr>
		<tr>
			<td>
			<p><b>Reporting to</b></p>
			</td>
			<td>
			<p>' . $reportingTo[0]->name . '</p>
			</td>
			<td>
			<p><b>Job Location</b></p>
			</td>
			<td>
			<p>PCP Premises</p>
			</td>
		</tr>
		<tr>
			<td>
			<p><b>Direct Supervision</b></p>
			</td>
			<td>
			<p>N/A</p>
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
	</tbody>
</table>
<h4  id="color" style="background-color: #365f91 !important;color: white !important;">Job Summary</h4>
//.........這裏部分代碼省略.........
開發者ID:ahmedalaahagag,項目名稱:ICEPROHRM,代碼行數:101,代碼來源:EmployeesActionManager.php


注:本文中的Languages::Find方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。