3 declare(strict_types=0);
    16         $num_required_postings = $frm_properties->getLpReqNumPostings();
    18         if (null === $num_required_postings) {
    23         $frm->setForumId($frm_properties->getObjId());
    24         $statistics = $frm->getUserStatistics(
    25             $frm_properties->isPostActivationEnabled()
    29             static function (array $statisic): 
int {
    30                 return (
int) $statisic[
'pos_author_id'];
    34                 static function (array $statistic) use (
    35                     $num_required_postings
    37                     return (
int) $statistic[
'num_postings'] >= $num_required_postings;
    48         $num_required_postings = $frm_properties->getLpReqNumPostings();
    50         if (null === $num_required_postings) {
    55         $frm->setForumId($frm_properties->getObjId());
    56         $statistics = $frm->getUserStatistics(
    57             $frm_properties->isPostActivationEnabled()
    61             static function (array $statisic): 
int {
    62                 return (
int) $statisic[
'pos_author_id'];
    66                 static function (array $statistic) use (
    67                     $num_required_postings
    69                     $num_user_postings = (
int) $statistic[
'num_postings'];
    70                     return $num_user_postings > 0 && $num_user_postings < $num_required_postings;
    81         $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
    84         $num_required_postings = $frm_properties->getLpReqNumPostings();
    86         if (null === $num_required_postings) {
    91         $frm->setForumId($frm_properties->getObjId());
    93         $num_postings = $frm->getNumberOfPublishedUserPostings(
    95             $frm_properties->isPostActivationEnabled()
    97         if ($num_postings >= $num_required_postings) {
    98             $status = self::LP_STATUS_COMPLETED_NUM;
    99         } elseif ($num_postings > 0) {
   100             $status = self::LP_STATUS_IN_PROGRESS_NUM;
 Class Forum core functions for forum. 
 
static _getInProgress(int $a_obj_id)
 
determineStatus(int $a_obj_id, int $a_usr_id, object $a_obj=null)
 
static _getCompleted(int $a_obj_id)
 
static getInstance(int $a_obj_id=0)
 
Class ilLPStatusContributionToDiscussion.