public static function get(lesson $lesson) {
        static $pagetypemanager;
        if (!($pagetypemanager instanceof lesson_page_type_manager)) {
            $pagetypemanager = new lesson_page_type_manager();
            $pagetypemanager->load_lesson_types($lesson);
        }
        return $pagetypemanager;
    }
public static function get(lesson $lesson) {
        static $pagetypemanager;
        if (!($pagetypemanager instanceof lesson_page_type_manager)) {
            $pagetypemanager = new lesson_page_type_manager();
            $pagetypemanager->load_lesson_types($lesson);
        }
        return $pagetypemanager;
    }
public static function get ( lesson $ lesson ) { static $ pagetypemanager ; if ( ! ( $ pagetypemanager instanceof lesson_page_type_manager ) ) { $ pagetypemanager = new lesson_page_type_manager ( ) ; $ pagetypemanager -> load_lesson_types ( $ lesson ) ; } return $ pagetypemanager ; }
Retrieves the lesson page type manager object

If the object hasn't yet been created it is created here.

@staticvar lesson_page_type_manager $pagetypemanager
@param lesson $lesson
@return lesson_page_type_manager
Retrieves the lesson page type manager object