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


PHP Manufacturer::LoadAllWithCustomFieldsHelper方法代碼示例

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


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

示例1: btnNext_Click


//.........這裏部分代碼省略.........
                     $strManufacturerArray[] = $txtDefaultValue;
                     $objNewManufacturer = new Manufacturer();
                     $objNewManufacturer->ShortDescription = addslashes($txtDefaultValue);
                     $objNewManufacturer->Save();
                     $this->objNewManufacturerArray[$objNewManufacturer->ManufacturerId] = $objNewManufacturer->ShortDescription;
                 }
                 $this->btnNext->Warning = "Manufacturers have been imported. Please wait...";
             }
             for ($j = $this->intCurrentFile; $j < count($this->strFilePathArray); $j++) {
                 $this->FileCsvData->load($this->strFilePathArray[$j]);
                 if (!$j) {
                     //$this->FileCsvData->appendRow($this->FileCsvData->getHeaders());
                 }
                 // Manufacturer Import
                 if ($this->intImportStep == 2) {
                     $arrItemCustomField = array();
                     foreach ($this->arrTracmorField as $key => $value) {
                         if (substr($value, 0, 13) == 'manufacturer_') {
                             $intItemCustomFieldKeyArray[substr($value, 13)] = $key;
                             if (array_key_exists(substr($value, 13), $this->arrItemCustomField)) {
                                 $arrItemCustomField[substr($value, 13)] = $this->arrItemCustomField[substr($value, 13)];
                             }
                         }
                     }
                     $strManufacturerValuesArray = array();
                     $strUpdatedManufacturerValuesArray = array();
                     $strItemCFVArray = array();
                     $strUpdatedItemCFVArray = array();
                     $strNewManufacturerArray = array();
                     $intManufacturerArray = array();
                     $this->arrOldItemArray = array();
                     $this->objUpdatedItemArray = array();
                     $objManufacturerArray = array();
                     foreach (Manufacturer::LoadAllWithCustomFieldsHelper() as $objManufacturer) {
                         $objManufacturerArray[strtolower($objManufacturer->ShortDescription)] = $objManufacturer;
                     }
                     for ($i = 0; $i < $this->FileCsvData->countRows(); $i++) {
                         $strRowArray = $this->FileCsvData->getRow($i);
                         $objManufacturer = null;
                         if ($this->lstImportAction->SelectedValue == 2) {
                             $intItemId = intval(trim($strRowArray[$this->intItemIdKey]));
                             foreach ($objManufacturerArray as $objItem) {
                                 if ($objItem->ManufacturerId == $intItemId) {
                                     $objManufacturer = $objItem;
                                     break;
                                 }
                             }
                         } else {
                             $intItemId = 0;
                         }
                         // Create action
                         if (trim($strRowArray[$this->intManufacturerKey]) && (!$intItemId || !$objManufacturer) && !$this->in_array_nocase(trim($strRowArray[$this->intManufacturerKey]), $strManufacturerArray)) {
                             $strManufacturerArray[] = trim($strRowArray[$this->intManufacturerKey]);
                             $strManufacturerDescription = "";
                             if (isset($this->intManufacturerDescriptionKey)) {
                                 if (trim($strRowArray[$this->intManufacturerDescriptionKey])) {
                                     $strManufacturerDescription = trim($strRowArray[$this->intManufacturerDescriptionKey]);
                                 } else {
                                     $strManufacturerDescription = isset($this->txtMapDefaultValueArray[$this->intManufacturerDescriptionKey]) ? trim($this->txtMapDefaultValueArray[$this->intManufacturerDescriptionKey]->Text) : '';
                                 }
                             }
                             $strCFVArray = array();
                             $blnCheckCFVError = false;
                             // Custom Field import
                             foreach ($arrItemCustomField as $objCustomField) {
                                 if ($objCustomField->CustomFieldQtypeId != 2) {
開發者ID:proxymoron,項目名稱:tracmor,代碼行數:67,代碼來源:manufacturer_import.php

示例2: dtgManufacturer_Bind

 protected function dtgManufacturer_Bind()
 {
     $objExpansionMap[Manufacturer::ExpandCreatedByObject] = true;
     // Get Total Count b/c of Pagination
     $this->dtgManufacturer->TotalItemCount = Manufacturer::CountAll();
     if ($this->dtgManufacturer->TotalItemCount == 0) {
         $this->dtgManufacturer->ShowHeader = false;
     } else {
         /*				$objClauses = array();
         				if ($objClause = $this->dtgManufacturer->OrderByClause)
         					array_push($objClauses, $objClause);
         				if ($objClause = $this->dtgManufacturer->LimitClause)
         					array_push($objClauses, $objClause);
         				if ($objClause = QQ::Expand(QQN::Manufacturer()->CreatedByObject))
         					array_push($objClauses, $objClause);
         				$this->dtgManufacturer->DataSource = Manufacturer::LoadAll($objClauses);
         				$this->dtgManufacturer->ShowHeader = true;*/
         $this->dtgManufacturer->DataSource = Manufacturer::LoadAllWithCustomFieldsHelper($this->dtgManufacturer->SortInfo, $this->dtgManufacturer->LimitInfo, $objExpansionMap);
         $this->dtgManufacturer->ShowHeader = true;
     }
 }
開發者ID:brustj,項目名稱:tracmor,代碼行數:21,代碼來源:manufacturer_list.php


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