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


PHP Contacts::getJobOrdersArray方法代碼示例

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


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

示例1: addActivityScheduleEvent

 private function addActivityScheduleEvent()
 {
     /* Bail out if we don't have a valid candidate ID. */
     if (!$this->isRequiredIDValid('contactID', $_GET)) {
         CommonErrors::fatalModal(COMMONERROR_BADINDEX, $this, 'Invalid contact ID.');
     }
     $contactID = $_GET['contactID'];
     $contacts = new Contacts($this->_siteID);
     $contactData = $contacts->get($contactID);
     $regardingRS = $contacts->getJobOrdersArray($contactID);
     $calendar = new Calendar($this->_siteID);
     $calendarEventTypes = $calendar->getAllEventTypes();
     /* Are we in "Only Schedule Event" mode? */
     $onlyScheduleEvent = $this->isChecked('onlyScheduleEvent', $_GET);
     if (!eval(Hooks::get('CONTACTS_ADD_ACTIVITY_SCHEDULE_EVENT'))) {
         return;
     }
     if (SystemUtility::isSchedulerEnabled() && !$_SESSION['CATS']->isDemo()) {
         $allowEventReminders = true;
     } else {
         $allowEventReminders = false;
     }
     $this->_template->assign('contactID', $contactID);
     $this->_template->assign('regardingRS', $regardingRS);
     $this->_template->assign('allowEventReminders', $allowEventReminders);
     $this->_template->assign('userEmail', $_SESSION['CATS']->getEmail());
     $this->_template->assign('onlyScheduleEvent', $onlyScheduleEvent);
     $this->_template->assign('calendarEventTypes', $calendarEventTypes);
     $this->_template->assign('isFinishedMode', false);
     $this->_template->display('./modules/contacts/AddActivityScheduleEventModal.tpl');
 }
開發者ID:rankinp,項目名稱:OpenCATS,代碼行數:31,代碼來源:ContactsUI.php

示例2: Candidates

        include_once './lib/Candidates.php';
        $dataItem = new Candidates($siteID);
        break;
    case DATA_ITEM_COMPANY:
        include_once './lib/Companies.php';
        $dataItem = new Companies($siteID);
        break;
    case DATA_ITEM_CONTACT:
        include_once './lib/Contacts.php';
        $dataItem = new Contacts($siteID);
        break;
    default:
        $interface->outputXMLErrorPage(-1, 'Invalid data item type.');
        die;
        break;
}
$jobOrdersArray = $dataItem->getJobOrdersArray($dataItemID);
if (empty($jobOrdersArray)) {
    $interface->outputXMLErrorPage(-2, 'No job orders data.');
    die;
}
$output = "<data>\n" . "    <errorcode>0</errorcode>\n" . "    <errormessage></errormessage>\n";
foreach ($jobOrdersArray as $rowIndex => $row) {
    if (!isset($jobOrdersArray[$rowIndex]['isAssigned'])) {
        $jobOrdersArray[$rowIndex]['isAssigned'] = '0';
    }
    $output .= "    <joborder>\n" . "        <id>" . $jobOrdersArray[$rowIndex]['jobOrderID'] . "</id>\n" . "        <title>" . htmlspecialchars($jobOrdersArray[$rowIndex]['title']) . "</title>\n" . "        <companyname>" . htmlspecialchars($jobOrdersArray[$rowIndex]['companyName']) . "</companyname>\n" . "        <assigned>" . htmlspecialchars($jobOrdersArray[$rowIndex]['isAssigned']) . "</assigned>\n" . "    </joborder>\n";
}
$output .= "</data>\n";
/* Send back the XML data. */
$interface->outputXMLPage($output);
開發者ID:PublicityPort,項目名稱:OpenCATS,代碼行數:31,代碼來源:getDataItemJobOrders.php


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