-
Notifications
You must be signed in to change notification settings - Fork 4
HistoryLog_Form_Reports
Ned Henry edited this page Jun 6, 2014
·
1 revision
History log report generation form class
- Class name: HistoryLog_Form_Reports
- Namespace:
- Parent class: Omeka_Form
void HistoryLog_Form_Reports::\HistoryLog_Form_Reports::init()()
Construct the report generation form.
- Visibility: public
void HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_registerElements()()
Define the form elements.
- Visibility: private
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::ProcessPost()(string $style)
Process the data from the form and retrieve the requested log data.
- Visibility: public
- This method is static.
- $style string - <p>The style in which to return the data. Accepted values: "html"(default), "JSON"</p>
array HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getActionOptions()()
Retrieve possible log actions as selectable option list
- Visibility: private
array HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getCollectionOptions()()
Retrieve Collections as selectable option list
- Visibility: private
array HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getUserOptions()()
Retrieve Omeka Admin Users as selectable option list
- Visibility: private
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getItem()(int $itemID)
Retrieve title of an item by given itemID
- Visibility: private
- This method is static.
- $itemID int - <p>The ID of the item</p>
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getUser()(int $userID)
Retrieve username of an omeka user by user ID
- Visibility: private
- This method is static.
- $userID int - <p>The ID of the Omeka user</p>
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getAction()(string $actionSlug)
Retrieve displayable name of an action by its slug
- Visibility: private
- This method is static.
- $actionSlug string - <p>All lower case action name from the database</p>
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getValue()(string $encodedValue, string $actionSlug)
Retrieve "value" parameter in user displayable form
- Visibility: private
- This method is static.
- $encodedValue string - <p>The "value" parameter directly from the database</p>
- $actionSlug string - <p>the slug of the type of action associated with this value parameter</p>
string HistoryLog_Form_Reports::\HistoryLog_Form_Reports::_getDate()(string $dateTime)
Format a date in standard form
- Visibility: private
- This method is static.
- $dateTime string - <p>The unformatted dateTime</p>