Source for file Administration.php
Documentation is available at Administration.php
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 601 $ $Date: 2007-02-24 23:49:30 +0100 (Sa, 24 Feb 2007) $
* @package Phundament.Components
* Displays lithrons main configuration options
* Updates 'Globalization' settings
$c= $this->CultureSelector->getText();
$this->Application->Session->add("Culture", $c);
$this->getApplication()->getGlobalization()->Culture= $c;
Prado :: trace("Culture set to " . $c, "Lithron.Main");
$this->Service->reload();
* deletes cache files from the runtime folder
$sel = $this->RuntimeCacheSelector->getSelectedIndices();
Prado :: trace("No runtime files selected. Nothing deleted.", "Lithron.Main");
$ds = $this->RuntimeCacheSelector->getItems();
$rp = $this->Application->getRuntimePath();
// TODO: Windows filepath separator?
$filename = $rp. "/". $ds[$index]->getValue();
Prado :: trace("Deleting $filename: " . ($result ? "ok" : "failed"), "Lithron.Main");
|