/** * Получение списка материалов заданного этапа * @param int $stageId * @return arrays */ static function getList($stageId = NULL) { $result = parent::getList("SELECT * FROM `" . self::TABLE . "` WHERE `stage_id`=" . intval($stageId)); $l10nList = MaterialL10n::getListByIds(array_keys($result)); foreach (array_keys($result) as $materialId) { $result[$materialId]->l10n = $l10nList[$materialId]; } return $result; }