Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
1QH.net - Unique Quality Hosting.network
Расскажи о нас


Пользовательские движки шаблонизации

02.10.2009

Пример подключения движка XML/XSLT:

Сначала регистрируем движок:

global $arCustomTemplateEngines;
$arCustomTemplateEngines = array(
   "xslt" => array(
      "templateExt" => array("xsl"),
      "function" => "XSLTEngine"
   ),
);

Функция инициализации параметров движка:

function CreateXMLFromArray($xDoc, $xNode, $ar)
{
   foreach($ar as $key=>$val)
   {
      if(!is_string($key) || strlen($key)<=0)
         $key = "value";

      $xElement = $xDoc->createElement($key);
      if(is_array($val))
      {
         CreateXMLFromArray($xDoc, $xElement, $val);
      }
      else
      {
         $xElement->appendChild($xDoc->createTextNode(iconv( SITE_CHARSET, "utf-8", $val)));
      }
      $xNode->appendChild($xElement);
   }
   return $xNode;
}

Функция подключения движка:

function XSLTEngine($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template)
{
   $arResult["PARAMS"] = array(
      "templateFolder" => $templateFolder,
      "parentTemplateFolder" => $parentTemplateFolder,
      "arParams" => $arParams,
      "arLangMessages" => $arLangMessages
   );

   $xDoc = new DOMDocument("1.0", SITE_CHARSET);
   $xRoot = $xDoc->createElement('result');
   CreateXMLFromArray($xDoc, $xRoot, $arResult);
   $xDoc->appendChild($xRoot);

   $xXsl = new DOMDocument();
   $xXsl->load( $_SERVER["DOCUMENT_ROOT"].$templateFile );

   $xProc = new XSLTProcessor;
   $xProc->importStyleSheet($xXsl);

   echo $xProc->transformToXML($xDoc);
}


Страница 3 - 3 из 3
Начало | Пред. | 1 2 3 | След. | Конец

Количество показов: 83981691
Рейтинг:  3.3

Возврат к списку

(Голосов: 1, Рейтинг: 3.3)

Материалы по теме:


Страницы: Пред. 1 ... 2119 2120 2121 2122 2123 ... 4264 След.
0  
RabyHaigo
darkmarket  darkmarket url
Имя Цитировать 0  
0  
PingPap
dark web markets  dark web market urls
Имя Цитировать 0  
0  
RobertWet
DataDex: Unlocking the Power of Decentralized Data Solutions
DataDex is at the cutting edge of blockchain analytics and decentralized data management. Our platform provides real-time insights and advanced analytics tools designed to empower businesses and individuals alike. https://datadex.my/

Why Choose DataDex?

Secure Blockchain Integration: Built with robust technology to ensure data integrity.
Real-Time Analytics: Gain actionable insights instantly.
Scalable Solutions: Tailored for businesses of all sizes.
Start your journey with DataDex today and experience a revolution in data solutions! https://datadex.my/
Имя Цитировать 0  
0  
DonDonTyday
darknet websites  darknet market list
Имя Цитировать 0  
0  
Toliksit
dark market onion  darknet sites
Имя Цитировать 0  
0  
DonDonTyday
bitcoin dark web  darknet markets 2025
Имя Цитировать 0  
0  
Toliksit
darknet markets 2025  darknet marketplace
Имя Цитировать 0  
0  
Kxyupen
dark markets 2025  darknet market lists
Имя Цитировать 0  
0  
DonaldRah
darknet markets links  tor drug market
Имя Цитировать 0  
0  
DonaldRah
dark web marketplaces  dark web marketplaces
Имя Цитировать 0  
0  
FNDavidVag
darknet drug store  https://github.com/newonionlinks/darknetmarkets  dark market 2025
Имя Цитировать 0  
0  
WilliamIRPap
dark market  darkmarkets
Имя Цитировать 0  
0  
MarkNOshevy
dark market url  dark market url
Имя Цитировать 0  
0  
DavidDep
Playgama offers a extravagant tenets for gaming enthusiasts, featuring the latest and most artistically free online games. Solitary of the standout benefits of Playgama is its commitment to providing an uninterrupted gaming experience. Players can dive into their favorite games without the hassle of long-winded downloads, meddling ads, or annoying pop-ups that regularly evil other gaming sites.

With Playgama, you can simply https://caveira-roots.com/en/blogs/blog-caveira-roots/dia-dos-mortos-mexico?comment=122288439433#comments load up your chosen gamble speedily in your интернет browser, allowing on seamless access and direct enjoyment. This convenience means that you can quick switch between games, exploring new titles or revisiting ex- favorites without any barriers. Whether you are into manners, contemplate, or plan games, Playgama has something for everyone http://xcibwupwebpin.mex.tl/?gb=1

Not only that, the choice https://tambonyo.go.th/forum/suggestion-box/48519-playgama-offers-a-bizarre-tenets is regularly updated, ensuring that you each time receive access to the latest titles in the gaming world. The party line prioritizes drug experience, making it amicable to pilot and identify games that jacket your interests.

In conclusion, Playgama is the expert destination https://loryweb.ru/section-bg-wave-left2/#comment-2051 for anyone looking to be undergoing in jest and appreciate gaming without interruptions. With a far-reaching distribute of emancipated online games available at your fingertips, you can immerse yourself in hours of performance—all from the solace of your интернет browser. So, why wait? Afflict Playgama today and start your gaming episode!
Имя Цитировать 0  
0  
Volodyasit
Имя Цитировать 0  
0  
Donaldbed
Diagnostico de equipos
Aparatos de calibracion: fundamental para el desempeno estable y optimo de las equipos.

En el campo de la ciencia moderna, donde la productividad y la seguridad del aparato son de alta importancia, los aparatos de ajuste juegan un papel crucial. Estos sistemas especializados estan desarrollados para equilibrar y estabilizar partes rotativas, ya sea en herramientas productiva, vehiculos de traslado o incluso en aparatos de uso diario.

Para los profesionales en soporte de equipos y los profesionales, trabajar con equipos de balanceo es importante para garantizar el operacion fluido y confiable de cualquier dispositivo dinamico. Gracias a estas opciones innovadoras sofisticadas, es posible disminuir sustancialmente las movimientos, el sonido y la esfuerzo sobre los soportes, extendiendo la duracion de componentes importantes.

Igualmente relevante es el rol que cumplen los equipos de equilibrado en la soporte al comprador. El asistencia tecnico y el reparacion permanente utilizando estos dispositivos facilitan ofrecer prestaciones de alta calidad, incrementando la contento de los clientes.

Para los responsables de empresas, la contribucion en equipos de balanceo y dispositivos puede ser fundamental para aumentar la eficiencia y eficiencia de sus sistemas. Esto es especialmente trascendental para los inversores que manejan pequenas y pequenas negocios, donde cada aspecto es relevante.

Ademas, los dispositivos de ajuste tienen una amplia utilizacion en el sector de la fiabilidad y el gestion de excelencia. Posibilitan detectar potenciales fallos, previniendo mantenimientos costosas y averias a los equipos. Mas aun, los resultados recopilados de estos dispositivos pueden usarse para maximizar procesos y mejorar la reconocimiento en sistemas de consulta.

Las zonas de aplicacion de los dispositivos de equilibrado comprenden diversas industrias, desde la produccion de bicicletas hasta el monitoreo de la naturaleza. No afecta si se considera de grandes elaboraciones de fabrica o modestos establecimientos domesticos, los dispositivos de equilibrado son necesarios para asegurar un desempeno eficiente y sin interrupciones.
Имя Цитировать 0  
0  
Volodyasit
Имя Цитировать 0  
0  
Pingunisp
darknet markets 2025  darknet markets 2025
Имя Цитировать 0  
0  
DonDonpen
best darknet markets  darknet websites
Имя Цитировать 0  
0  
TolikItamp
darknet sites  darknet drug links
Имя Цитировать 0  
0  
DonaldRah
darknet markets  dark market link
Имя Цитировать 0  
0  
AngelMubre
http://tech-logistics.ru/ - C'est Moi - студия предметной съемки для маркетплейсов.
Имя Цитировать 0  
0  
Pingunisp
darkmarket list  dark web sites
Имя Цитировать 0  
0  
MarkNORah
darknet market lists  dark markets 2025
Имя Цитировать 0  
0  
WilliamIRunisp
darknet markets onion  darknet markets links
Имя Цитировать 0  
Страницы: Пред. 1 ... 2119 2120 2121 2122 2123 ... 4264 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

1QH.net - Unique Quality Hosting.network
liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved