芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/plesk/api-php-lib/src/Api/Operator/Locale.php
client->getPacket(); $filter = $packet->addChild($this->wrapperTag)->addChild('get')->addChild('filter'); if (!is_null($id)) { $filter->addChild('id', $id); } $response = $this->client->request($packet, \PleskX\Api\Client::RESPONSE_FULL); foreach ($response->locale->get->result ?? [] as $localeInfo) { if (!is_null($localeInfo->info)) { $locales[(string) $localeInfo->info->id] = new Struct\Info($localeInfo->info); } } return !is_null($id) ? reset($locales) : $locales; } }