Skip to content

Commit 0da77bf

Browse files
authored
Update README.md
add Example
1 parent 65a798a commit 0da77bf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,25 @@
22
ORM for bitrix learning module
33

44
namespace Learning;
5+
6+
# Examples
7+
8+
## Get all Lessons from specific Site sorted by Course active date, Lesson active date
9+
```
10+
\Learning\LessonTable::getList([
11+
'order' => ['COURSE.ACTIVE_FROM' => 'ASC', 'ACTIVE_FROM' => 'ASC'],
12+
'filter' => [
13+
'ACTIVE' => 'Y',
14+
'COURSE.SITE.SITE_ID' => SITE_ID,
15+
'CHECK_PERMISSIONS' => 'Y'
16+
],
17+
'select' => [
18+
'NAME',
19+
'LESSON_ID' => 'ID',
20+
'COURSE_ID' => 'COURSE.ID',
21+
'ACTIVE_FROM' => 'COURSE.ACTIVE_FROM',
22+
'SORT',
23+
'CREATED_BY'
24+
]
25+
]);
26+
```

0 commit comments

Comments
 (0)