uawdijnntqw1x1x1
IP : 3.128.190.174
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
perm.axolotls.ru
/
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) { $demos = []; // delete blocks from repo $res = self::getList([ 'select' => [ 'ID', 'APP_CODE', 'XML_ID' ], 'filter' => [ '=APP_CODE' => $code ] ]); while ($row = $res->fetch()) { $demos[$row['APP_CODE'] . '.' . $row['XML_ID']] = $row; self::delete($row['ID']); } // and pages, which created with this templates if ($demos) { $res = Landing::getList([ 'select' => [ 'ID' ], 'filter' => [ '=TPL_CODE' => array_keys($demos) ] ]); while ($row = $res->fetch()) { Landing::delete($row['ID'], true); } } unset($demos, $row, $res); } }
/var/www/axolotl/data/www/perm.axolotls.ru/bitrix/modules/landing/lib/demos.php