$site->update($data = array()[,$lang = null])
Updates all given site variables, which are stored in site.txt
-
$data (array)
The sitte data to be updated -
$language (string)
Optional, language code (only in case of a multi-language site) -
return ($site)
Example
try {
$site->update(array(
'title' => 'My Site',
'description' => 'it is really nice',
));
echo 'The site info has been updated';
} catch(Exception $e) {
echo $e->getMessage();
}