Permalink
Browse files

System Roles are back

  • Loading branch information...
1 parent a90fe5b commit aee82553bd647c4c5ffc162c96e8148bab13f993 @brendo brendo committed Apr 16, 2010
Showing with 39 additions and 39 deletions.
  1. +39 −37 symphony/content/content.systemroles.php
  2. +0 −2 symphony/lib/toolkit/class.view.php
@@ -61,53 +61,55 @@ public function __viewIndex(){
else foreach($roles as $r){
- /**********
+ /**********
- ASSUMING an $r object with a basic getter method
- for the following properties:
- - name
- - handle
- - description
+ ASSUMING an $r object with a basic getter method
+ for the following properties:
+ - name
+ - handle
+ - description
- ALSO ASSUMING methods for grabbing user info:
- - getUserCount()
+ ALSO ASSUMING methods for grabbing user info:
+ - getUserCount()
- NEED TO UPDATE the User filter link in $td3
+ NEED TO UPDATE the User filter link in $td3
- **********/
+ **********/
- $td1 = Widget::TableData(
- Widget::Anchor(
- $r->get('name'),
- Administration::instance()->getCurrentPageURL() . 'edit/' . $r->get('handle') . '/',
- array('handle' => $r->get('name'))
- )
- );
+ $td1 = Widget::TableData(
+ Widget::Anchor(
+ $r->get('name'),
+ Administration::instance()->getCurrentPageURL() . 'edit/' . $r->get('handle') . '/',
+ array('handle' => $r->get('name'))
+ )
+ );
- $td2 = Widget::TableData(
- $r->get('description')
- );
+ $td2 = Widget::TableData(
+ $r->get('description')
+ );
- $td3 = Widget::TableData(
- Widget::Anchor(
- $r->getUserCount(),
- URL . '/symphony/system/users?filter=???????????'
- )
- );
+ $td3 = Widget::TableData(
+ Widget::Anchor(
+ $r->getUserCount(),
+ URL . '/symphony/system/users?filter=???????????'
+ )
+ );
- $td3->appendChild(
- Widget::Input(
- 'items[' . $r->get('name') . ']',
- NULL,
- 'checkbox'
- )
- );
+ $td3->appendChild(
+ Widget::Input(
+ 'items[' . $r->get('name') . ']',
+ NULL,
+ 'checkbox'
+ )
+ );
+
+ $aTableBody[] = Widget::TableRow(array($td1, $td2, $td3));
- $aTableBody[] = Widget::TableRow(array($td1, $td2, $td3));
- }
}
- $table = Widget::Table(Widget::TableHead($aTableHead),NULL,Widget::TableBody($aTableBody));
+ $table = Widget::Table(
+ Widget::TableHead($aTableHead),NULL,Widget::TableBody($aTableBody)
+ );
$this->Form->appendChild($table);
@@ -208,7 +210,7 @@ private function __form(){
}
}
-
+
/**********
INSERT logic for determining the current role and
@@ -1,7 +1,5 @@
<?php
-
-
Class ViewException extends Exception {}
Class ViewFilterIterator extends FilterIterator{

0 comments on commit aee8255

Please sign in to comment.