本文整理匯總了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;
}
示例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;
}