%PDF- %PDF-
Direktori : /proc/self/root/home/bitrix/www/bitrix/modules/learning/classes/general/legacy/ |
Current File : //proc/self/root/home/bitrix/www/bitrix/modules/learning/classes/general/legacy/clesson.php |
<?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 ((strlen($key) >= 2) && (strtoupper(substr($key, -2)) === 'ID')) { // And prefix before 'ID' doesn't contains letters if ( ! preg_match ("/[a-zA-Z_]+/", substr($key, 0, -2)) ) { $prefix = ''; if (strlen($key) > 2) $prefix = substr($key, 0, -2); $arFields[$prefix . 'LESSON_ID'] = $arFilter[$key]; unset ($arFilter[$key]); } } } return (CLearnLesson::GetList(array(), $arFilter)); } }