示例#1
0
文件: Material.php 项目: jne21/WBT
 /**
  * Получение списка материалов заданного этапа
  * @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;
 }