%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/modules/landing/lib/ |
Current File : /home/bitrix/www/bitrix/modules/landing/lib/demos.php |
<?php namespace Bitrix\Landing; class Demos extends \Bitrix\Landing\Internals\BaseTable { /** * Item for show in 'create site'. */ const TPL_TYPE_SITE = 'S'; /** * Item for show in 'create page'. */ const TPL_TYPE_PAGE = 'P'; /** * Internal class. * @var string */ public static $internalClass = 'DemosTable'; /** * Delete all app items from repo. * @param string $code App code. * @return void */ public static function deleteByAppCode($code) { // delete blocks from repo $res = self::getList(array( 'select' => array( 'ID' ), 'filter' => array( '=APP_CODE' => $code ) )); while ($row = $res->fetch()) { self::delete($row['ID']); } } }