Public Member Functions

ilLPStatusWrapper Class Reference

Public Member Functions

 _getCountNotAttempted ($a_obj_id)
 Static function to read the number of user who have the status 'not_attempted'.
 _getNotAttempted ($a_obj_id)
 Static function to read the number of user who have the status 'not_attempted'.
 _getCountInProgress ($a_obj_id)
 Static function to read the number of user who have the status 'in_progress'.
 _getInProgress ($a_obj_id)
 Static function to read users who have the status 'in_progress'.
 _getCountCompleted ($a_obj_id)
 Static function to read the number of user who have the status 'completed'.
 _getCompleted ($a_obj_id)
 Static function to read the users who have the status 'completed'.

Detailed Description

Definition at line 41 of file class.ilLPStatusWrapper.php.


Member Function Documentation

ilLPStatusWrapper::_getCompleted ( a_obj_id  ) 

Static function to read the users who have the status 'completed'.

Definition at line 111 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory::_getClassById().

Referenced by ilLPListOfObjectsGUI::__readProcessingTime(), ilLearningProgressBaseGUI::__readStatus(), ilLPListOfObjectsGUI::__showEditUser(), ilLPListOfObjectsGUI::__showUserList(), _getCountCompleted(), ilLPStatusTestPassed::_getInProgress(), ilLPStatusCollection::_getInProgress(), ilLPStatusManual::_getNotAttempted(), and ilLPStatusCollection::_getNotAttempted().

        {
                static $cache = array();

                if(isset($cache[$a_obj_id]))
                {
                        return $cache[$a_obj_id];
                }

                $class = ilLPStatusFactory::_getClassById($a_obj_id);

                $cache[$a_obj_id] = call_user_func(array($class,'_getCompleted'),$a_obj_id);

                return $cache[$a_obj_id];
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLPStatusWrapper::_getCountCompleted ( a_obj_id  ) 

Static function to read the number of user who have the status 'completed'.

Definition at line 103 of file class.ilLPStatusWrapper.php.

References _getCompleted().

Referenced by ilLPListOfObjectsGUI::__showItems().

        {
                return count(ilLPStatusWrapper::_getCompleted($a_obj_id));
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLPStatusWrapper::_getCountInProgress ( a_obj_id  ) 

Static function to read the number of user who have the status 'in_progress'.

Definition at line 74 of file class.ilLPStatusWrapper.php.

References _getInProgress().

Referenced by ilLPListOfObjectsGUI::__showItems().

        {
                return count(ilLPStatusWrapper::_getInProgress($a_obj_id));
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLPStatusWrapper::_getCountNotAttempted ( a_obj_id  ) 

Static function to read the number of user who have the status 'not_attempted'.

Definition at line 47 of file class.ilLPStatusWrapper.php.

References _getNotAttempted().

Referenced by ilLPListOfObjectsGUI::__showItems().

        {
                return count(ilLPStatusWrapper::_getNotAttempted($a_obj_id));
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLPStatusWrapper::_getInProgress ( a_obj_id  ) 

Static function to read users who have the status 'in_progress'.

Definition at line 82 of file class.ilLPStatusWrapper.php.

References $ilBench, and ilLPStatusFactory::_getClassById().

Referenced by ilLearningProgressBaseGUI::__readStatus(), ilLPListOfObjectsGUI::__showUserList(), _getCountInProgress(), ilLPStatusCollection::_getInProgress(), ilLPStatusManual::_getNotAttempted(), and ilLPStatusCollection::_getNotAttempted().

        {
                static $cache = array();

                if(isset($cache[$a_obj_id]))
                {
                        return $cache[$a_obj_id];
                }

                global $ilBench;

                $class = ilLPStatusFactory::_getClassById($a_obj_id);

                $cache[$a_obj_id] = call_user_func($tmp = array($class,'_getInProgress'),$a_obj_id);

                return $cache[$a_obj_id];
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLPStatusWrapper::_getNotAttempted ( a_obj_id  ) 

Static function to read the number of user who have the status 'not_attempted'.

Definition at line 55 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory::_getClassById().

Referenced by ilLPListOfObjectsGUI::__showUserList(), and _getCountNotAttempted().

        {
                static $cache = array();

                if(isset($cache[$a_obj_id]))
                {
                        return $cache[$a_obj_id];
                }

                $class = ilLPStatusFactory::_getClassById($a_obj_id);

                $cache[$a_obj_id] = call_user_func(array($class,'_getNotAttempted'),$a_obj_id);
                
                return $cache[$a_obj_id];
        }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: