Place for common code for classes used in export_ui classes. More...
Public Member Functions | |
get_setting ($name, $def=NULL) | |
get_settings() More... | |
MailinglistPolymorphicExportableInterface | |
created () | |
created() More... | |
edited ($old) | |
edited() More... | |
changedType (MailinglistPolymorpicExportableInterface $old) | |
changedType() More... | |
delete () | |
delete() More... | |
baseName () | |
baseName() More... | |
ctools_export_ui_interface | |
edit_form (&$form, &$form_state) | |
Implements ctools_export_ui::edit_form() called via mailinglist_export_ui Build an edit form for our object. More... | |
edit_form_validate (&$form, &$form_state) | |
Implements ctools_export_ui::edit_form_validate(). More... | |
edit_form_submit (&$form, &$form_state) | |
Implements ctools_export_ui::edit_form_submit(). More... | |
MailinglistPolymorphicExportableInterface |
Data Fields | |
$object_type | |
The type of object we are. More... | |
$settings | |
Generic Array to hold misc settings so all can use same schema. More... | |
$export_type | |
Needed by CTools. More... | |
Logging | |
const | LOG_OFF = 0 |
const | LOG_SCREEN = 1 |
const | LOG_DB = 2 |
const | LOG_DB_SCREEN = 3 |
const | LOG_FILE = 4 |
const | LOG_FILE_SCREEN = 5 |
const | LOG_DEBUG = WATCHDOG_DEBUG |
const | LOG_INFO = WATCHDOG_INFO |
const | LOG_NOTICE = WATCHDOG_NOTICE |
const | LOG_WARNING = WATCHDOG_WARNING |
const | LOG_ERROR = WATCHDOG_ERROR |
const | LOG_CRITICAL = WATCHDOG_CRITICAL |
const | LOG_ALERT = WATCHDOG_ALERT |
const | LOG_EMERGENCY = WATCHDOG_EMERGENCY |
$logging_screen = self::LOG_DEBUG | |
$logging_db = self::LOG_INFO | |
$logging_file = self::LOG_DEBUG | |
log ($str, $level=self::LOG_NOTICE, $parms=array()) | |
log() More... | |
log_screen ($str, $parms=array(), $level=self::LOG_NOTICE) | |
log_screen() More... | |
log_db ($str, $parms=array(), $level=self::LOG_ERROR) | |
log_db(). More... | |
log_file ($str, $parms=array(), $level=self::LOG_INFO) | |
log_file(). More... | |
Place for common code for classes used in export_ui classes.
Main purpose is to make sure all export_ui classes implement the hooks forwarded by the export_ui code
Definition at line 13 of file mailinglist_exportable.class.php.
baseName | ( | ) |
Definition at line 78 of file mailinglist_exportable.class.php.
Referenced by changedType(), created(), delete(), and edited().
changedType | ( | MailinglistPolymorpicExportableInterface | $old | ) |
hook called when an object has had its object_type changed in the database.
Implements MailinglistPolymorphicExportableInterface.
Definition at line 60 of file mailinglist_exportable.class.php.
References baseName().
created | ( | ) |
hook called when a new object has been created in the database.
Implements MailinglistPolymorphicExportableInterface.
Definition at line 42 of file mailinglist_exportable.class.php.
References baseName().
delete | ( | ) |
hook called when an object is about to be deleted from the database.
Implements MailinglistPolymorphicExportableInterface.
Definition at line 69 of file mailinglist_exportable.class.php.
References baseName().
edit_form | ( | & | $form, |
& | $form_state | ||
) |
Implements ctools_export_ui::edit_form() called via mailinglist_export_ui Build an edit form for our object.
Definition at line 95 of file mailinglist_exportable.class.php.
edit_form_submit | ( | & | $form, |
& | $form_state | ||
) |
Implements ctools_export_ui::edit_form_submit().
called via mailinglist_export_ui
Definition at line 109 of file mailinglist_exportable.class.php.
edit_form_validate | ( | & | $form, |
& | $form_state | ||
) |
Implements ctools_export_ui::edit_form_validate().
called via mailinglist_export_ui
Definition at line 102 of file mailinglist_exportable.class.php.
edited | ( | $old | ) |
hook called when an object has been updated in the database.
Implements MailinglistPolymorphicExportableInterface.
Definition at line 51 of file mailinglist_exportable.class.php.
References baseName().
get_setting | ( | $name, | |
$def = NULL |
|||
) |
get_settings()
Get a settings from the object.
$name | The name of the setting. |
$def | Default value to return if setting is not present. |
Definition at line 26 of file mailinglist_exportable.class.php.
Referenced by MailinglistPhpImapRetrieve\edit_form(), Mailman21List\edit_form(), MailinglistPop3Retrieve\edit_form(), MailinglistMailboxRetrieve\edit_form(), MailinglistRetrieve\edit_form(), MailinglistList\edit_form(), MailinglistList\genericListMatch(), Mailman21List\getMemberInfo(), Mailman21List\getMemberPage(), and Mailman21List\getWebPage().
log | ( | $str, | |
$level = self::LOG_NOTICE , |
|||
$parms = array() |
|||
) |
Definition at line 144 of file mailinglist_exportable.class.php.
References log_db(), log_file(), and log_screen().
Referenced by MailinglistPop3Retrieve\connect(), MailinglistPop3Retrieve\disconnect(), Mailman21List\getMemberPage(), MailinglistPhpImapRetrieve\purge_message(), MailinglistPop3Retrieve\recv_string(), MailinglistPop3Retrieve\send(), and MailinglistPop3Retrieve\send_cmd().
log_db | ( | $str, | |
$parms = array() , |
|||
$level = self::LOG_ERROR |
|||
) |
Log a message to the watchdog Database logs.
Definition at line 189 of file mailinglist_exportable.class.php.
References $object_type.
Referenced by log().
log_file | ( | $str, | |
$parms = array() , |
|||
$level = self::LOG_INFO |
|||
) |
Log a message to a logfile.
Definition at line 203 of file mailinglist_exportable.class.php.
Referenced by log().
log_screen | ( | $str, | |
$parms = array() , |
|||
$level = self::LOG_NOTICE |
|||
) |
log a message to the screen
Definition at line 167 of file mailinglist_exportable.class.php.
Referenced by log().
$export_type |
Needed by CTools.
Definition at line 16 of file mailinglist_exportable.class.php.
$logging_db = self::LOG_INFO |
Definition at line 138 of file mailinglist_exportable.class.php.
$logging_file = self::LOG_DEBUG |
Definition at line 139 of file mailinglist_exportable.class.php.
$logging_screen = self::LOG_DEBUG |
Definition at line 137 of file mailinglist_exportable.class.php.
$object_type |
The type of object we are.
Definition at line 14 of file mailinglist_exportable.class.php.
Referenced by log_db().
$settings |
Generic Array to hold misc settings so all can use same schema.
Definition at line 15 of file mailinglist_exportable.class.php.
const LOG_ALERT = WATCHDOG_ALERT |
Definition at line 134 of file mailinglist_exportable.class.php.
const LOG_CRITICAL = WATCHDOG_CRITICAL |
Definition at line 133 of file mailinglist_exportable.class.php.
const LOG_DB = 2 |
Definition at line 121 of file mailinglist_exportable.class.php.
const LOG_DB_SCREEN = 3 |
Definition at line 122 of file mailinglist_exportable.class.php.
const LOG_DEBUG = WATCHDOG_DEBUG |
Definition at line 128 of file mailinglist_exportable.class.php.
const LOG_EMERGENCY = WATCHDOG_EMERGENCY |
Definition at line 135 of file mailinglist_exportable.class.php.
const LOG_ERROR = WATCHDOG_ERROR |
Definition at line 132 of file mailinglist_exportable.class.php.
const LOG_FILE = 4 |
Definition at line 123 of file mailinglist_exportable.class.php.
const LOG_FILE_SCREEN = 5 |
Definition at line 124 of file mailinglist_exportable.class.php.
const LOG_INFO = WATCHDOG_INFO |
Definition at line 129 of file mailinglist_exportable.class.php.
const LOG_NOTICE = WATCHDOG_NOTICE |
Definition at line 130 of file mailinglist_exportable.class.php.
const LOG_OFF = 0 |
Definition at line 119 of file mailinglist_exportable.class.php.
const LOG_SCREEN = 1 |
Definition at line 120 of file mailinglist_exportable.class.php.
const LOG_WARNING = WATCHDOG_WARNING |
Definition at line 131 of file mailinglist_exportable.class.php.