Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/file_helper.php
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | |||||
* @param bool $is_image | * @param bool $is_image | ||||
* @return void | * @return void | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function createItemFiles($prefix, $is_image = false) | public function createItemFiles($prefix, $is_image = false) | ||||
{ | { | ||||
$items_info = $this->Application->GetVar($prefix); | $items_info = $this->Application->GetVar($prefix); | ||||
if ($items_info) { | if ($items_info) { | ||||
list (, $fields_values) = each($items_info); | $fields_values = current($items_info); | ||||
$this->createUploadFields($prefix, $fields_values, $is_image); | $this->createUploadFields($prefix, $fields_values, $is_image); | ||||
} | } | ||||
else { | else { | ||||
$this->createUploadFields($prefix, Array(), $is_image); | $this->createUploadFields($prefix, Array(), $is_image); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |