Mailinglist
 All Data Structures Files Functions Variables Pages
MailinglistOperation Class Reference

Base Class for Mailinglist extensions. More...

Inheritance diagram for MailinglistOperation:
Inheritance graph
[legend]
Collaboration diagram for MailinglistOperation:
Collaboration graph
[legend]

Public Member Functions

MailinglistOperationInterface
 isAvailable (MailinglistListInterface $list)
 Implements MailinglistOperationInterface::isAvailable(). More...
 
 hasPermission (MailinglistListInterface $list)
 Implements MailinglistOperationInterface::hasPermission(). More...
 
 enabled (MailinglistListInterface $list)
 Implements MailinglistOperationInterface::enabled(). More...
 
 disabled (MailinglistListInterface $list)
 Implements MailinglistOperationInterface::disabled(). More...
 
 form (&$form, &$form_state, $list)
 Operation page form generation. More...
 
 validate (&$form, &$form_state, $list)
 Operation page form validation. More...
 
 submit (&$form, &$form_state, $list)
 Operation page form submission. More...
 
MailinglistOperationInterface

Detailed Description

Base Class for Mailinglist extensions.

Definition at line 10 of file MailinglistOperation.class.php.

Member Function Documentation

disabled ( MailinglistListInterface  $list)

Implements MailinglistOperationInterface::disabled().

Implements MailinglistOperationInterface.

Definition at line 41 of file MailinglistOperation.class.php.

41  {
42  }
enabled ( MailinglistListInterface  $list)

Implements MailinglistOperationInterface::enabled().

Implements MailinglistOperationInterface.

Definition at line 35 of file MailinglistOperation.class.php.

35  {
36  }
form ( $form,
$form_state,
  $list 
)

Operation page form generation.

Parameters
$formForm for the page.
$form_stateForm state for the page.
$listList we are generating the page for.

Implements MailinglistOperationInterface.

Definition at line 51 of file MailinglistOperation.class.php.

51  {
52  }
hasPermission ( MailinglistListInterface  $list)

Implements MailinglistOperationInterface::hasPermission().

Implements MailinglistOperationInterface.

Definition at line 28 of file MailinglistOperation.class.php.

28  {
29  return user_access('mailinglist ' . $list->admin_name . ' ' . $this->plugin['key']);
30  }
isAvailable ( MailinglistListInterface  $list)

Implements MailinglistOperationInterface::isAvailable().

Todo:
implement MailinglistOperation::isAvailable();

Implements MailinglistOperationInterface.

Definition at line 21 of file MailinglistOperation.class.php.

21  {
22  return TRUE;
23  }
submit ( $form,
$form_state,
  $list 
)

Operation page form submission.

Parameters
$formForm for the page.
$form_stateForm state for the page.
$listList we are generating the page for.

Implements MailinglistOperationInterface.

Definition at line 71 of file MailinglistOperation.class.php.

71  {
72  }
validate ( $form,
$form_state,
  $list 
)

Operation page form validation.

Parameters
$formForm for the page.
$form_stateForm state for the page.
$listList we are generating the page for.

Implements MailinglistOperationInterface.

Definition at line 61 of file MailinglistOperation.class.php.

61  {
62  }

The documentation for this class was generated from the following file: