Example #1
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (CModule::IncludeModule('webdav') && class_exists('CWebDavInterface')) {
    CWebDavInterface::UserFieldEdit($arParams, $arResult);
}
Example #2
0
 function GetPublicViewHTML($arUserField, $id, $params = "", $settings = array(), $matches = array())
 {
     if (\Bitrix\Main\Config\Option::get('disk', 'successfully_converted', false) && CModule::includeModule('disk')) {
         return is_array($matches) ? $matches[0] : '';
     }
     $set = array();
     if (is_array($settings) && !empty($settings)) {
         if (array_key_exists("imageWidth", $settings) && array_key_exists("imageHeight", $settings)) {
             $set["MAX_SIZE"] = array("width" => $settings["imageWidth"], "height" => $settings["imageHeight"]);
         }
         if (array_key_exists("imageHtmlWidth", $settings) && array_key_exists("imageHtmlHeight", $settings)) {
             $set["HTML_SIZE"] = array("width" => $settings["imageHtmlWidth"], "height" => $settings["imageHtmlHeight"]);
         }
     }
     if ($params != '' && is_string($params) && preg_match_all("/(width|height)=(\\d+)/is", $params, $matches)) {
         $params = array_combine($matches[1], $matches[2]);
     }
     ob_start();
     CWebDavInterface::UserFieldViewThumb($arParams = array("arUserField" => $arUserField, "arSettings" => $set, "MOBILE" => is_array($settings) && array_key_exists("bMobile", $settings) && $settings["bMobile"] ? "Y" : "N"), $arResult = array("VALUE" => array($id)), null, array($id => $params));
     return ob_get_clean();
 }
Example #3
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (CModule::IncludeModule('webdav') && class_exists('CWebDavInterface')) {
    $arResult['VALUE'] = $arResult['~VALUE'];
    CWebDavInterface::UserFieldView($arParams, $arResult);
}