Source for file Remover.class.php
Documentation is available at Remover.class.php
* @copyright Energine 2006
* @version $Id: Remover.class.php,v 1.5 2008/08/27 15:39:16 chyk Exp $
//require_once('core/framework/Component.class.php');
* Класс которому передается имя компонента, который необходимо удалить
* Класс используется для случаев, когда пользователи с разными правми должны видеть разные компоненты
* @param Document $document
public function __construct($name, $module, Document $document, array $params = null) {
parent::__construct($name, $module, $document, $params);
* Добавлен параметр имя компонента
protected function main() {
$component = $this->document->componentManager->getComponentByName($this->getParam('componentName'))
|