| Current Path : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/plugins/search/zoosearch/ |
| Current File : /var/www/iplanru/data/www/iplan.5018.vps.agava.net/plugins/search/zoosearch/file.script.php |
<?php
/**
* @package Search - ZOO
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
class plgsearchzoosearchInstallerScript {
public function install($parent) {}
public function uninstall($parent) {}
public function update($parent) {}
public function preflight($type, $parent) {
if (strtolower($type) == 'update') {
// load config
require_once(JPATH_ADMINISTRATOR.'/components/com_zoo/config.php');
// get app
$zoo = App::getInstance('zoo');
foreach ($zoo->filesystem->readDirectoryFiles($parent->getParent()->getPath('source'), $parent->getParent()->getPath('source').'/', '/(positions\.(config|xml)|metadata\.xml)$/', true) as $file) {
JFile::delete($file);
}
}
}
public function postflight($type, $parent) {}
}