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


PHP ImportMap::fill_in_additional_detail_fields方法代碼示例

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


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

示例1: retrieve_all_by_string_fields

 /**
  * Similar to retrieve_by_string_fields, but returns multiple objects instead of just one.
  *
  * @param  array $fields_array
  * @return array $obj_arr
  */
 public function retrieve_all_by_string_fields($fields_array)
 {
     $query = "SELECT *\n                    FROM {$this->table_name}\n                    " . $this->get_where($fields_array);
     $result = $this->db->query($query, true, " Error: ");
     $obj_arr = array();
     while ($row = $this->db->fetchByAssoc($result, -1, FALSE)) {
         $focus = new ImportMap();
         foreach ($this->column_fields as $field) {
             if (isset($row[$field])) {
                 $focus->{$field} = $row[$field];
             }
         }
         $focus->fill_in_additional_detail_fields();
         $obj_arr[] = $focus;
     }
     return $obj_arr;
 }
開發者ID:sysraj86,項目名稱:carnivalcrm,代碼行數:23,代碼來源:ImportMap.php

示例2: array

 function retrieve_all_by_string_fields($fields_array)
 {
     $where_clause = $this->get_where($fields_array);
     $query = "SELECT * FROM {$this->table_name} {$where_clause}";
     $GLOBALS['log']->debug("Retrieve {$this->object_name}: " . $query);
     $result = $this->db->query($query, true, " Error: ");
     $obj_arr = array();
     while ($row = $this->db->fetchByAssoc($result, -1, FALSE)) {
         $focus = new ImportMap();
         foreach ($this->column_fields as $field) {
             if (isset($row[$field])) {
                 $focus->{$field} = $row[$field];
             }
         }
         $focus->fill_in_additional_detail_fields();
         array_push($obj_arr, $focus);
     }
     return $obj_arr;
 }
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:19,代碼來源:ImportMap.php


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