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".
Return Return
(object|false) Instance of the admin table class or false if the class can't be found.
Source Source
File: includes/class.llms.ajax.handler.php
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;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Don't require LLMS_Admin_Reporting, it's loaded automatically. |
| 3.37.15 | Introduced. |