Your IP : 3.23.88.161
<?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']);
}
}
}