Signed-off-by: Roland Haeder <roland@mxchange.org>
*/
class NewgroupAction extends FormAction
{
+ protected $group;
+
+ function getGroup() {
+ return $this->group;
+ }
+
function title()
{
// TRANS: Title for form to create a group.
return true;
}
- function onEndGroupSaveForm(GroupAction $action)
+ function onEndGroupSaveForm(Action $action)
{
+ // The Action class must contain this method
+ assert(is_callable(array($action 'getGroup')));
+
$gps = null;
$group = $action->getGroup();
return true;
}
- function onStartShowExportData(GroupAction $action)
+ function onStartShowExportData(Action $action)
{
if ($action instanceof ShowgroupAction) {
$gps = Group_privacy_settings::forGroup($action->getGroup());