27 if (isset($this->settings[$name]))
return $this->settings[$name];
43 $ret = module_invoke_all($this->
baseName() .
'_created', $this);
52 $ret = module_invoke_all($this->
baseName() .
'_edited', $this, $old);
60 function changedType(MailinglistPolymorpicExportableInterface $old) {
61 $ret = module_invoke_all($this->
baseName() .
'_changed_type', $this, $old);
70 $ret = module_invoke_all($this->
baseName() .
'_delete', $this);
144 public function log($str, $level = self::LOG_NOTICE, $parms = array()) {
146 if ($level <= $this->logging_db) {
147 $this->
log_db($str, $parms, $level);
149 if ($level <= $this->logging_file) {
150 $this->
log_file($str, $parms, $level);
152 if ($level <= $this->logging_screen) {
167 public function log_screen($str, $parms = array(), $level = self::LOG_NOTICE) {
169 static $levels = array(
170 self::LOG_DEBUG =>
'status',
171 self::LOG_INFO =>
'status',
172 self::LOG_NOTICE =>
'status',
173 self::LOG_WARNING =>
'warning',
174 self::LOG_ERROR =>
'error',
175 self::LOG_CRITICAL =>
'error',
176 self::LOG_ALERT =>
'error',
177 self::LOG_EMERGENCY =>
'error',
180 dpm(t($str, $parms), $this->object_type, $levels[$level]);
189 public function log_db($str, $parms = array(), $level = self::LOG_ERROR) {
191 if(property_exists($this,
'admin_name')){
192 $key .=
' ' . $this->admin_name;
194 watchdog($this->object_type, $str, $parms, $level);
203 public function log_file($str, $parms = array(), $level = self::LOG_INFO) {
interface MailinglistPolymorphicExportInterface
edit_form_validate(&$form, &$form_state)
Implements ctools_export_ui::edit_form_validate().
get_setting($name, $def=NULL)
get_settings()
log_file($str, $parms=array(), $level=self::LOG_INFO)
log_file().
$object_type
The type of object we are.
log($str, $level=self::LOG_NOTICE, $parms=array())
log()
edit_form_submit(&$form, &$form_state)
Implements ctools_export_ui::edit_form_submit().
changedType(MailinglistPolymorpicExportableInterface $old)
changedType()
log_db($str, $parms=array(), $level=self::LOG_ERROR)
log_db().
Place for common code for classes used in export_ui classes.
log_screen($str, $parms=array(), $level=self::LOG_NOTICE)
log_screen()
edit_form(&$form, &$form_state)
Implements ctools_export_ui::edit_form() called via mailinglist_export_ui Build an edit form for our ...
$settings
Generic Array to hold misc settings so all can use same schema.
$export_type
Needed by CTools.