function wr ($teg, $value, $book=false) {
global $xml;
if ($value == false) {
return NULL;
}
if ($book == false) {
return $xml->writeElement($teg, $value);
} else {
return $xml->writeElement($teg, $colorist[$value]);
}
}
function wr ($teg, $value, $book=false) {
global $book, $value, $xml, $teg;
if ($value == false) {
return NULL;
}
if ($book == false) {
return $xml->writeElement($teg, $value);
} else {
return $xml->writeElement($teg, $colorist[$value]);
}
}
function wr ($teg, $value, $book=false) {
global $book, $value, $xml, $teg;
if ($value == false) {
return NULL;
}
if ($book == false) {
return $xml->writeElement($teg, $value);
} else {
return $xml->writeElement($teg, $colorist[$value]);
}
}
function wr ($teg, $value, $book=false) {
global $book, $value, $xml, $teg;
if ($value == false) {
return NULL;
}
if ($book == false) {
return $xml->writeElement($teg, $value);
} else {
return $xml->writeElement($teg, $colorist[$value]);
}
}
// если нет справочника я хотел бы так записывать
write("Price", $data['price']);
// пробовал так
write("Price", false, $data['price']);
array_diff($data['ID'], base['ID']);
$imageLink = array();
foreach ($item['MORE_PHOTO'] as $imageid){
if (CFile::GetPath($imageid))
$imageLink[] = "https://твойсайт.ru".CFile::GetPath($imageid);
}
$max = (count($imageLink);
for ($i=0;$i<$max;$i++){
$imageLink[$i];
};
write("Price", $data['price'], $colorist);
Вот так долдно быть поидее