admin() table()

Show admin ids as "id; login", linked to the admin account.

table()->admin($name = '', $link = '', $data = '', $extra = [])

Options

OptionMeaning
$linkLink; default url_admin('/admin/edit/%d').
$dataId => text map instead of the query.
(text options)Every option of text().

Example

This example reads the database: it runs in the admin docs only.

Code

$rows = [
    1 => ['id' => 1, 'action' => 'Settings saved', 'admin_id' => 1],
];
return table($rows, ['no_pages' => 1])
    ->text('action')
    ->admin('admin_id');

Notes

  • It adds a custom_fields query on the admin table for the ids of the page; designed for the admin.
  • The column name defaults to user_id.

See also: table/user, form/admin_info