Differences Between: [Versions 310 and 400] [Versions 39 and 400] [Versions 400 and 403]
Contains the class used for the displaying the tokens table.
Copyright: | 2017 John Okely <john@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 319 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
token_table:: (9 methods):
__construct()
col_operation()
col_validuntil()
col_fullname()
col_token()
col_creatorlastname()
col_servicename()
other_cols()
query_db()
Class: token_table - X-Ref
Class for the displaying the participants table.__construct($id, $filterdata = null) X-Ref |
Sets up the table. param: int $id The id of the table param: object $filterdata The data submitted by the {@see token_filter}. |
col_operation($data) X-Ref |
Generate the operation column. return: string Content for the column param: \stdClass $data Data for the current row |
col_validuntil($data) X-Ref |
Generate the validuntil column. return: string Content for the column param: \stdClass $data Data for the current row |
col_fullname($data) X-Ref |
Generate the fullname column. Also includes capabilities the user is missing for the webservice (if any) return: string Content for the column param: \stdClass $data Data for the current row |
col_token($data) X-Ref |
Generate the token column. return: string Content for the column param: \stdClass $data Data for the current row |
col_creatorlastname($data) X-Ref |
Generate the creator column. return: string param: \stdClass $data |
col_servicename($data) X-Ref |
Format the service name column. return: string param: \stdClass $data |
other_cols($colname, $data) X-Ref |
This function is used for the extra user fields. These are being dynamically added to the table so there are no functions 'col_<userfieldname>' as the list has the potential to increase in the future and we don't want to have to remember to add a new method to this class. We also don't want to pollute this class with unnecessary methods. return: string param: string $colname The column name param: \stdClass $data |
query_db($pagesize, $useinitialsbar = false) X-Ref |
Query the database for results to display in the table. Note: Initial bars are not implemented for this table because it includes user details twice and the initial bars do not work when the user table is included more than once. param: int $pagesize size of page for paginated displayed table. param: bool $useinitialsbar Not implemented. Please pass false. |