| Useradmin | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | Cts_Controller_Action_Abstract Cts_Controller_Action_Admin |
| Instance Methods | |
| init | Invoked automatically when an instance is created. |
| Actions | |
| index | The user administration landing page. |
| edit | The page for administrators to edit users. |
| delete | Deletes a user. |
| testdata | Adds a bunch of test users with random but plausible data. |
function indexAction()
The user administration landing page.
| page | The number of the current page in the listing of users. |
| searchterm | A string with a term or terms to search for users with. |
| useradmin_users_per_page | An integer for the number of users to show per admin page. |
| param users | The array of users to affect. |
| searchterm | The string submitted as a user list search term. |
| users | The array of users to display for the current page. |
function editAction()
The page for administrators to edit users. Either displays an edit form, or processes the form, depending on whether the HTTP Request is GET or POST. If the username is invalid, the browser is redirected to ‘/auth/missing’ (currently hardcoded).
| aboutme | TBD |
| Birthday_Day | The user’s birth day. |
| Birthday_Month | The user’s birth month. |
| Birthday_Year | The user’s birth year. |
| confirm | TBD |
| country_code | The user’s country code. |
| The user’s email address. | |
| gender | User’s gender, if chosen |
| newpassword | if both this and confirm are set and match, password will be changed |
| confirm | see newpassword |
| role_id | role id of the user being edited |
| tags | string containing comma seperated tag list |
| username | username of user being editied |
| param user | The user to be affected. |
| param request | The entire HTTP Request. |
| countries | And array of all countries pulled from the database. |
| end_year | the last year a birthday can have. uses the minimum age param in the registry |
| errors | An array of error messages. Only exists if errors occurred. |
| genders | array of gender options |
| params | All params in the param arrays for filters get turned into view variables automatically. |
| roles | array of roles this user could have |
| success | success message, if there is one |
| errors | array of errors, if there are any |
| tags | comma separated list of tags for this user |
| user | The user object to be edited |
function deleteAction()
Deletes a user. After a successful deletion, the browser is redirected to ‘/useradmin’ (currently hardcoded).
| del | If the value is yes, the user will be deleted, otherwise the browser will just be redirected to ‘/useradmin’ (currently hardcoded). |
| param username | The username of the user to be deleted. |
| param delete_row | A boolean to determine whether the user’s row in the database should be deleted or not. Defaults to true. |
| pagetitle | The HTML page title. |
| user | The user to delete. |
function testdataAction()
Adds a bunch of test users with random but plausible data.
| test_data_path | if set, will be used as a default param for where to look for test data |
| param user | the array containing the user data. |
Invoked automatically when an instance is created.
function init()
The user administration landing page.
function indexAction()
The page for administrators to edit users.
function editAction()
Deletes a user.
function deleteAction()
Adds a bunch of test users with random but plausible data.
function testdataAction()