How to use system_properties class

Best Phoronix-test-suite code snippet using system_properties

offices.php

Source:offices.php Github

copy

Full Screen

1<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?>2<?php3use intec\core\helpers\ArrayHelper;4use intec\core\helpers\Type;5/**6 * @var array $arParams7 * @var array $arResult8 * @var string $sTemplateId9 * @var Closure $getMapCoordinates10 */11?>12<div class="contacts-offices">13 <div class="contacts-title"><?= GetMessage('N_L_CONTACTS_LIST_OFFICES') ?></div>14 <div class="contacts-description"><?= GetMessage('N_L_CONTACTS_LIST_OFFICES_DESCRIPTION') ?></div>15 <div class="contacts-sections">16 <?php foreach($arResult['SECTIONS'] as $arSection) { ?>17 <?php if (count($arSection['ITEMS']) <= 0) continue; ?>18 <div class="contacts-section">19 <div class="contacts-section-title"><?= $arSection['NAME'] ?></div>20 <div class="contacts-offices-list">21 <div class="contacts-offices-list-wrapper">22 <?php foreach ($arSection['ITEMS'] as $arItem) { ?>23 <?php24 $sId = $sTemplateId.'_'.$arItem['ID'];25 $sAreaId = $this->GetEditAreaId($sId);26 $arCoordinates = $getMapCoordinates($arItem);27 $sImage = null;28 $this->AddEditAction($sId, $arItem['EDIT_LINK']);29 $this->AddDeleteAction($sId, $arItem['DELETE_LINK']);30 if (!empty($arItem['PREVIEW_PICTURE'])) {31 $sImage = CFile::ResizeImageGet(32 $arItem['PREVIEW_PICTURE'],33 array('width' => 360, 'height' => 245),34 BX_RESIZE_IMAGE_PROPORTIONAL_ALT35 );36 if (Type::isArray($sImage)) {37 $sImage = $sImage['src'];38 } else {39 $sImage = null;40 }41 }42 ?>43 <div class="contacts-office">44 <div class="contacts-office-wrapper" id="<?= $sAreaId ?>">45 <div class="contacts-image" style="background-image: url('<?= $sImage ?>')"></div>46 <div class="contacts-information">47 <?php if (!empty($arItem['SYSTEM_PROPERTIES']['ADDRESS']['VALUE'])) { ?>48 <div class="contacts-information-section contacts-address">49 <div class="contacts-information-title">50 <i class="glyph-icon-location_2 intec-cl-text icon-contacts"></i>51 <div class="contacts-information-text">52 <?= GetMessage('N_L_CONTACTS_LIST_OFFICES_ADDRESS') ?>:53 </div>54 </div>55 <div class="contacts-information-content">56 <?= $arItem['SYSTEM_PROPERTIES']['ADDRESS']['VALUE'] ?>57 </div>58 </div>59 <?php } ?>60 <?php if (!empty($arItem['SYSTEM_PROPERTIES']['WORK_TIME']['VALUE']) && Type::isArray($arItem['SYSTEM_PROPERTIES']['WORK_TIME']['VALUE'])) { ?>61 <div class="contacts-information-section contacts-work-time">62 <div class="contacts-information-title">63 <i class="period-icon glyph-icon-clock intec-cl-text icon-contacts"></i>64 <div class="contacts-information-text">65 <?= GetMessage('N_L_CONTACTS_LIST_OFFICES_WORK_TIME') ?>:66 </div>67 </div>68 <div class="contacts-information-content">69 <?php foreach ($arItem['SYSTEM_PROPERTIES']['WORK_TIME']['VALUE'] as $key => $time) { ?>70 <?php $sDescription = ArrayHelper::getValue($arItem['SYSTEM_PROPERTIES']['WORK_TIME']['DESCRIPTION'], $key); ?>71 <div class="contacts-work-time">72 <?= !empty($sDescription) ? $sDescription.': '.$time : $time ?>73 </div>74 <?php } ?>75 </div>76 </div>77 <?php } ?>78 <?php if (!empty($arItem['SYSTEM_PROPERTIES']['EMAIL']['VALUE']) || !empty($arItem['SYSTEM_PROPERTIES']['PHONE']['VALUE'])) { ?>79 <div class="contacts-information-section contacts-contacts">80 <div class="contacts-information-title">81 <i class="glyph-icon-mail intec-cl-text icon-contacts"></i>82 <div class="contacts-information-text">83 <?= GetMessage('N_L_CONTACTS_LIST_OFFICES_CONTACTS') ?>:84 </div>85 </div>86 <div class="contacts-information-content">87 <?php if (!empty($arItem['SYSTEM_PROPERTIES']['PHONE']['VALUE'])) { ?>88 <div class="contacts-phone">89 <?= GetMessage('N_L_CONTACTS_LIST_OFFICES_PHONE') ?>: <?= $arItem['SYSTEM_PROPERTIES']['PHONE']['VALUE'] ?>90 </div>91 <?php } ?>92 <?php if (!empty($arItem['SYSTEM_PROPERTIES']['EMAIL']['VALUE'])) { ?>93 <div class="contacts-email">94 <a href="mailto:<?= $arItem['SYSTEM_PROPERTIES']['EMAIL']['VALUE'] ?>" class="contacts-email">95 <?= $arItem['SYSTEM_PROPERTIES']['EMAIL']['VALUE'] ?>96 </a>97 </div>98 <?php } ?>99 </div>100 </div>101 <?php } ?>102 <?php if ($arParams['SHOW_MAP'] == 'Y' && !empty($arCoordinates)) { ?>103 <a href="#<?= $sTemplateId ?>_map"104 class="contacts-information-on-map"105 data-latitude="<?= $arCoordinates[0] ?>"106 data-longitude="<?= $arCoordinates[1] ?>"107 ><?= GetMessage('N_L_CONTACTS_LIST_OFFICES_SHOW_ON_MAP') ?></a>108 <?php } ?>109 </div>110 <div class="clearfix"></div>111 </div>112 </div>113 <?php } ?>114 </div>115 </div>116 </div>117 <?php } ?>118 </div>119</div>...

Full Screen

Full Screen

template.php

Source:template.php Github

copy

Full Screen

1<?php if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();2use intec\core\helpers\ArrayHelper;3use intec\core\helpers\Html;4use intec\core\helpers\JavaScript;5/**6 * @var array $arParams7 * @var array $arResult8 * @global CMain $APPLICATION9 * @global CUser $USER10 * @global CDatabase $DB11 * @var CBitrixComponentTemplate $this12 * @var string $templateName13 * @var string $templateFile14 * @var string $templateFolder15 * @var string $componentPath16 * @var CBitrixComponent $component17 */18$this->setFrameMode(true);19$sTemplateId = spl_object_hash($this);20$cbPosition = $arParams['COMPLEX_BANNER_VIEW'];21$cbCount = $arParams['COMPLEX_BANNER_COUNT'];22?>23<div class="intec-content">24 <div class="intec-content-wrapper">25 <div class="main-banner">26<?= Html::beginTag(27 'div',28 array(29 'id' => $sTemplateId,30 'class' => 'news-list-slider-cb '.$cbPosition31 )32)?>33 <div class="slider-wrapper owl-carousel">34 <?php foreach ($arResult['ITEMS'] as $arItem): ?>35 <?php36 $sId = $sTemplateId.'_'.$arItem['ID'];37 $sAreaId = $this->GetEditAreaId($sId);38 $this->AddEditAction($sId, $arItem['EDIT_LINK']);39 $this->AddDeleteAction($sId, $arItem['DELETE_LINK']);40 $sImage = null;41 if (!empty($arItem['PREVIEW_PICTURE']['SRC']))42 $sImage = $arItem['PREVIEW_PICTURE']['SRC'];43 if (empty($sImage))44 continue;45 $sLink = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'LINK', 'VALUE'));46 $bButtonShow = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'BUTTON_SHOW', 'VALUE_XML_ID')) == 'Y';47 $sLinkTarget = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'LINK_TARGET', 'VALUE_XML_ID')) == 'Y' ? '_blank' : null;48 $bIsLink = !empty($sLink) && !$bButtonShow;49 $bIsButton = !empty($sLink) && $bButtonShow;50 $sTitle = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'TITLE', 'VALUE'));51 $sTitleTextColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'TITLE_TEXT_COLOR', 'VALUE'));52 $sDescription = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'DESCRIPTION', 'VALUE'));53 $sDescriptionTextColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'DESCRIPTION_TEXT_COLOR', 'VALUE'));54 $sButtonText = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'BUTTON_TEXT', 'VALUE'));55 $sButtonTextColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'BUTTON_TEXT_COLOR', 'VALUE'));56 $sButtonColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'BUTTON_COLOR', 'VALUE'));57 $sPosition = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'POSITION', 'VALUE_XML_ID'));58 $sBannerImage = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'IMAGE', 'VALUE'));59 $sBannerImagePosition = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'IMAGE_POSITION', 'VALUE_XML_ID'));60 $sTitleTextColor ? $sTitleTextColor = ' style="color:'.$sTitleTextColor.';"' : $sTitleTextColor = ' style="color:#FFF";';61 $sDescriptionTextColor ? $sDescriptionTextColor = ' style="color:'.$sDescriptionTextColor.';"' : $sDescriptionTextColor = ' style="color:#FFF";';62 if (empty($sButtonText))63 $sButtonText = GetMessage('N_L_SLIDER_BUTTON');64 $sStyle = array();65 if (!empty($sButtonColor)) {66 $sStyle[] = 'background-color: ' . $sButtonColor;67 $sStyle[] = 'border-color: ' . $sButtonColor;68 }69 if (!empty($sButtonTextColor)) {70 $sStyle[] = 'color: ' . $sButtonTextColor;71 }72 if (!empty($sStyle)) {73 $sStyle = implode('; ', $sStyle);74 } else {75 $sStyle = null;76 }77 ?>78 <?= Html::beginTag(79 $bIsLink ? 'a' : 'div',80 array(81 'class' => 'slider-item',82 'data-dot' => '<div class="slider-dot"></div>',83 'style' => array(84 'background-image' => 'url(\''.$sImage.'\')'85 ),86 'id' => $sAreaId,87 'href' => $bIsLink ? $sLink : null,88 'target' => $bIsLink ? $sLinkTarget : null89 )90 ) ?>91 <?php if ($sPosition != 'center') { ?>92 <?php include('parts/position.left.right.php') ?>93 <?php } else { ?>94 <?php include('parts/position.center.php') ?>95 <?php } ?>96 <?= Html::endTag($bIsLink ? 'a' : 'div') ?>97 <?php endforeach; ?>98 </div>99 <div class="slider-dots-wrap">100 <div class="slider-dots"></div>101 </div>102 <script type="text/javascript">103 (function ($, api) {104 $(document).ready(function () {105 var root = $(<?= JavaScript::toObject('#'.$sTemplateId) ?>);106 var slider = root.find('.owl-carousel').owlCarousel({107 items: 1,108 autoplay: <?= $arParams['AUTOPLAY'] == 'Y' ? 'true' : 'false' ?>,109 autoplaySpeed: 500,110 autoplayTimeout: <?= $arParams['AUTOPLAY_DELAY'] != '' ? $arParams['AUTOPLAY_DELAY'] : '10000' ?>,111 autoplayHoverPause: true,112 loop: true,113 nav: true,114 navText: ['', ''],115 dots: true,116 dotsData: true,117 dotsContainer: root.find('.slider-dots')118 });119 console.log(slider);120 });121 })(jQuery, intec)122 </script>123<?= Html::endTag('div') ?>124 <?php //Блоки маленьких баннеров125 $separate = 1;126 $separateCount = 1;127 foreach ($arResult['CBANNER'] as $arItem) { ?>128 <?php129 $cbLink = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'LINK', 'VALUE'));130 $cbIsLink = !empty($cbLink);131 $cbLinkBlank = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'LINK_BLANK', 'VALUE_XML_ID')) == 'Y' ? '_blank' : null;132 $cbImage = ArrayHelper::getValue($arItem, 'PREVIEW_PICTURE');133 $cbName = ArrayHelper::getValue($arItem, 'NAME');134 $cbNameColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'TEXT_COLOR', 'VALUE'));135 //$cbMarkText = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'MARK_TEXT', 'VALUE'));136 //$cbMarkTextColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'MARK_TEXT_COLOR', 'VALUE'));137 //$cbMarkColor = ArrayHelper::getValue($arItem, array('SYSTEM_PROPERTIES', 'MARK_COLOR', 'VALUE'));138 ?>139 <?php if ($separate == 1 || $separate == 3) { ?>140 <?= Html::beginTag(141 'div',142 array(143 'class' => 'cb-block-wrapper-'.$separateCount.' items-'.$cbCount.' '.$cbPosition.' clearfix'144 )145 ) ?>146 <?php } ?>147 <?php include('parts/cb.banners.php') ?>148 <?php if ($separate == 2 || $separate == 4) {149 $separateCount++ ?>150 <?= Html::endTag('div') ?>151 <?php }152 if ($separate == $cbCount) break;153 $separate++;154 ?>155 <?php } ?>156 </div>157 </div>158</div>...

Full Screen

Full Screen

system_properties

Using AI Code Generation

copy

Full Screen

1$system_properties = new system_properties();2$system_properties->set_system_type("laptop");3$system_properties->set_system_type("desktop");4$system_properties->set_system_type("server");5$system_properties->set_system_type("tablet");6$system_properties->set_system_type("mobile");7$system_properties->set_system_type("netbook");8$system_properties->set_system_type("workstation");9$system_properties->set_system_type("nettop");10$system_properties->set_system_type("embedded");11$system_properties->set_system_type("other");12$system_properties->set_system_type("unknown");13$system_properties->set_system_type("handheld");14$system_properties->set_system_type("gaming");15$system_properties->set_system_type("multimedia");16$system_properties->set_system_type("entertainment");17$system_properties->set_system_type("home");18$system_properties->set_system_type("business");19$system_properties->set_system_type("personal");20$system_properties->set_system_type("professional");21$system_properties->set_system_type("student");22$system_properties->set_system_type("developer");23$system_properties->set_system_type("sysadmin");24$system_properties->set_system_type("power");25$system_properties->set_system_type("ultra");26$system_properties->set_system_type("ultralow");

Full Screen

Full Screen

system_properties

Using AI Code Generation

copy

Full Screen

1require_once('system_properties.php');2$sys = new system_properties();3$sys->load_system();4$sys->load_cpu();5$sys->load_gpu();6$sys->load_memory();7$sys->load_os();8$sys->load_disk();9$sys->load_network();10$sys->load_other();11$sys->load_user();12$sys->load_software();13$sys->load_hardware();14$sys->load_virtualization();15$sys->load_display();16require_once('system_properties.php');17$sys = new system_properties();18$sys->load_system();19$sys->load_cpu();20$sys->load_gpu();21$sys->load_memory();22$sys->load_os();23$sys->load_disk();24$sys->load_network();25$sys->load_other();26$sys->load_user();27$sys->load_software();28$sys->load_hardware();29$sys->load_virtualization();30$sys->load_display();31require_once('system_properties.php');32$sys = new system_properties();33$sys->load_system();34$sys->load_cpu();35$sys->load_gpu();36$sys->load_memory();37$sys->load_os();38$sys->load_disk();

Full Screen

Full Screen

system_properties

Using AI Code Generation

copy

Full Screen

1$sys_prop = new system_properties();2echo $sys_prop->get_system_type();3$sys_prop = new system_properties();4echo $sys_prop->get_system_type();5$sys_prop = new system_properties();6echo $sys_prop->get_system_type();7$sys_prop = new system_properties();8echo $sys_prop->get_system_type();9$sys_prop = new system_properties();10echo $sys_prop->get_system_type();11$sys_prop = new system_properties();12echo $sys_prop->get_system_type();13$sys_prop = new system_properties();14echo $sys_prop->get_system_type();15$sys_prop = new system_properties();16echo $sys_prop->get_system_type();17$sys_prop = new system_properties();18echo $sys_prop->get_system_type();19$sys_prop = new system_properties();20echo $sys_prop->get_system_type();21$sys_prop = new system_properties();22echo $sys_prop->get_system_type();23$sys_prop = new system_properties();24echo $sys_prop->get_system_type();25$sys_prop = new system_properties();26echo $sys_prop->get_system_type();

Full Screen

Full Screen

system_properties

Using AI Code Generation

copy

Full Screen

1require_once 'system_properties.php';2$sys = new system_properties();3$sys_info = $sys->get_system_info();4echo $sys_info;5$cpu_info = $sys->get_cpu_info();6echo $cpu_info;7$cpu_info = $sys->get_cpu_info();8echo $cpu_info;9$cpu_info = $sys->get_cpu_info();10echo $cpu_info;11$cpu_info = $sys->get_cpu_info();12echo $cpu_info;13$cpu_info = $sys->get_cpu_info();14echo $cpu_info;15$cpu_info = $sys->get_cpu_info();16echo $cpu_info;17$cpu_info = $sys->get_cpu_info();18echo $cpu_info;19$cpu_info = $sys->get_cpu_info();20echo $cpu_info;21$cpu_info = $sys->get_cpu_info();22echo $cpu_info;23$cpu_info = $sys->get_cpu_info();24echo $cpu_info;25$cpu_info = $sys->get_cpu_info();26echo $cpu_info;27$cpu_info = $sys->get_cpu_info();28echo $cpu_info;

Full Screen

Full Screen

system_properties

Using AI Code Generation

copy

Full Screen

1require_once('pts-core/objects/system/system_properties.php');2$system = new pts_system_properties();3$system->init();4$system_array = $system->get_system_array();5$system_string = $system->get_system_string();6$system_string_key = $system->get_system_string_key();7$system_name = $system->get_system_name();8$system_cores = $system->get_system_cores();9$system_cpu = $system->get_system_cpu();10$system_gpu = $system->get_system_gpu();11$system_ram = $system->get_system_ram();12$system_disk = $system->get_system_disk();13$system_os = $system->get_system_os();14$system_os_version = $system->get_system_os_version();15$system_kernel = $system->get_system_kernel();16$system_architecture = $system->get_system_architecture();17$system_desktop_environment = $system->get_system_desktop_environment();18$system_window_manager = $system->get_system_window_manager();19$system_display_manager = $system->get_system_display_manager();20$system_shell = $system->get_system_shell();21$system_cpu_model = $system->get_system_cpu_model();

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Phoronix-test-suite automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used methods in system_properties

Run Selenium Automation Tests on LambdaTest Cloud Grid

Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful