11 tr.yay { background-
color: #eeffee }
12 tr.nay { background-
color: #ffeeee }
50 $sectionContent = GroupedQuery::create(
SectionContent,
"WHERE section_id IN (SELECT section_id FROM section WHERE site_id=:s) ORDER BY identifier",
"section_id")
61 $table->column(
"Identifier",
"<strong>{identifier}</strong>",
true,
"width: 20%")
62 ->column(
"Roles",
"{role:/,/, /}",
true,
"width: 30%")
63 ->column(
"Permissions",
"{permissions:/,/, /}",
true,
"width:30%")
64 ->column(
"User Can Access?", array(
$helper, formatAccess),
true,
"text-align: center");
72 $table->excelFile = codify(
$config[
'sitename'].
"_permissions_{$subject->username}").
".xls";
79 <div
class=
'tab_border'>
83 echo
"<p><label for='{$userPK}'>User:</label> <select name='{$userPK}' onchange=\"go('?{$userPK}=' + this.value);\">\n";
87 option(
$u->getPrimaryKeyValue(),
92 echo
"</select></p>\n";
93 echo
"<p><label>Roles:</label> {$subject->role}</p>\n";
94 echo
"<p><label>Permissions:</label> {$permissionsList}</p>\n";
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
Section DataItem, defining the data model for sections within a site.
The Settings class provides components with a common API for specifying application settings and conf...
static checkPermission($component, $name, $account=null)
Check whether a user has a specific permission.
Provides the interface to the user model for the application.
foreach($permissions as $p) $permissionsList