| Current Path : /var/www/homesaver/www/bitrix/modules/sprint.migration/templates/ |
| Current File : /var/www/homesaver/www/bitrix/modules/sprint.migration/templates/IblockDelete.php |
<?php
/**
* @var $version
* @var $description
* @var $items
* @var $extendUse
* @var $extendClass
* @var $moduleVersion
* @var $author
* @var array $iblocks
* @formatter:off
*/
?><?php echo "<?php\n" ?>
namespace Sprint\Migration;
<?php echo $extendUse ?>
class <?php echo $version ?> extends <?php echo $extendClass ?>
{
protected $author = "<?php echo $author ?>";
protected $description = "<?php echo $description ?>";
protected $moduleVersion = "<?php echo $moduleVersion ?>";
public function up()
{
$helper = $this->getHelperManager();
<?php foreach ($iblocks as $iblock){?>
$helper->Iblock()->deleteIblockIfExists('<?php echo $iblock['CODE']?>', '<?php echo $iblock['IBLOCK_TYPE_ID']?>');
<?php } ?>
}
}