CDBResult CLesson::GetByID( int ID );
The GetByID method returns a lesson identified by the ID. The current user access permissions are considered.
Parameter | Description |
---|---|
ID | The lesson ID. |
The method returns an instance of the CDBResult object.
<? if (CModule::IncludeModule("learning")) { $LESSON_ID = 651; $res = CLesson::GetByID($LESSON_ID); if ($arLesson = $res->GetNext()) { echo "Name: ".$arLesson["NAME"]; } } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |