Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/learning/classes/general/legacy/ |
Upload File : |
<?php /** * Code in this class is for temporary backward compatibility only, don't relay on it! * @deprecated */ class CLesson { /** * simple & stupid stub * @deprecated */ public static function GetList($arOrder = 'will be ignored', $arFilter = array()) { // We must replace '...ID' => '...LESSON_ID', // where '...' is some operation (such as '!', '<=', etc.) foreach ($arFilter as $key => $value) { // If key ends with 'ID' if ((mb_strlen($key) >= 2) && (mb_strtoupper(mb_substr($key, -2)) === 'ID')) { // And prefix before 'ID' doesn't contains letters if ( ! preg_match ("/[a-zA-Z_]+/", mb_substr($key, 0, -2)) ) { $prefix = ''; if (mb_strlen($key) > 2) $prefix = mb_substr($key, 0, -2); $arFields[$prefix . 'LESSON_ID'] = $arFilter[$key]; unset ($arFilter[$key]); } } } return (CLearnLesson::GetList(array(), $arFilter)); } }