Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.

This commit is contained in:
Tim Almdal
2009-10-15 14:37:57 -07:00
parent be6765336e
commit 00eacd659f
56 changed files with 441 additions and 426 deletions

View File

@@ -90,7 +90,7 @@
<span class="ui-icon ui-icon-pencil"></span><span class="g-button-text">
<?= t("edit") ?>
</span></a>
<? if (user::active()->id != $user->id && !$user->guest): ?>
<? if (Identity::active()->id != $user->id && !$user->guest): ?>
<a href="<?= url::site("admin/users/delete_user_form/$user->id") ?>"
class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></a>