1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
actiongettemplate.php
См. документацию.
1<?php
9
13
17
18Loc::loadMessages(__FILE__);
19
25{
26 const NAME = 'getTemplate';
27
33 public static function get()
34 {
35 return parent::get()->setRequestMethodGet();
36 }
37
45 {
46 $content = $response->initContentHtml();
47
48 $type = $request->get('template_type');
49 $id = $request->get('template_id');
50 $charset = $request->get('template_charset') ?? SITE_CHARSET;
51
52 Loader::includeModule('fileman');
54 ->withTypeId($type)
55 ->withId($id)
56 ->get();
57 if (!$template)
58 {
59 return;
60 }
61
62 $html = Editor::getHtmlForEditor($template['FIELDS']['MESSAGE']['VALUE'], $charset);
63 $content->set($html);
64 }
65}
$type
Определения options.php:106
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
static getHtmlForEditor($html, $charset=null)
Определения editor.php:1103
Определения loader.php:13
Определения response.php:5
static onRequest(HttpRequest $request, Controller\Response $response)
Определения actiongettemplate.php:44
static create()
Определения selector.php:47
$content
Определения commerceml.php:144
$template
Определения file_edit.php:49
const SITE_CHARSET
Определения include.php:62
$response
Определения result.php:21