int CChapter::GetCount( array arFilter = Array() );
The GetCount method returns the number of chapters that match the passed filter fields.
Parameter | Description |
---|---|
arFilter | The array array("filtered field"=>"filter value" [, ...]). Filter description is available in CChapter::GetList. |
The method returns the number of chapters.
<? if (CModule::IncludeModule("learning")) { $COURSE_ID = 97; $cnt = CChapter::GetCount(Array("ACTIVE" => "Y", "COURSE_ID" => $COURSE_ID)); echo "Number of chapters: ".$cnt; } ?>
<? if (CModule::IncludeModule("learning")) { $COURSE_ID = 97; $cnt = CChapter::GetCount(Array("CHECK_PERMISSIONS" => "N", "COURSE_ID" => $COURSE_ID)); echo "Number of chapters: ".$cnt; } ?>
© 2001-2007 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |