LLMS_AJAX_Handler::get_admin_table_instance( string $handler )

Retrieve a new instance of admin table class from a handler string.


Parameters Parameters

$handler

(string) (Required) Unprefixed handler class string. For example "Students" or "Course_Students".


Top ↑

Return Return

(object|false) Instance of the admin table class or false if the class can't be found.


Top ↑

Source Source

File: includes/class.llms.ajax.handler.php

171
172
173
174
175
176
177
178
179
180
181
182
protected static function get_admin_table_instance( $handler ) {
 
    LLMS_Admin_Reporting::includes();
 
    $handler = 'LLMS_Table_' . $handler;
    if ( class_exists( $handler ) ) {
        return new $handler();
    }
 
    return false;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Don't require LLMS_Admin_Reporting, it's loaded automatically.
3.37.15 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.