function readData($schedule_id) { $result = parent::readData($schedule_id); $this->_readSchedulePlugins('AMPSchedule'); $this->_readSchedulePlugins('AMPAppointment'); return $result; }
function getData($fields = null) { if (isset($fields)) { return parent::getData($fields); } return array_merge($this->_getTemplateArray(), parent::getData()); }
function _afterSave() { $this->_renewPermissions(); $this->_updateSections(); AMP_permission_update(); parent::_afterSave(); }
function _afterSave() { $reltype = $this->getData('reltype'); $this->_removeRelatedLinks(); $this->_saveRelatedLinks($reltype); parent::_afterSave(); }
function _afterSave() { $this->_updateTemplates(); $this->_updatePHPlistConfig(); $this->_updatePunbbConfig(); $this->_save_custom_config(); $this->_clearCached(); parent::_afterSave(); }
function isLive() { $modin = $this->getModin(); $live_forms = AMP_lookup('liveForms'); if (!$live_forms) { return false; } if (!isset($live_forms[$modin])) { return false; } return parent::isLive(); }
function delete() { $gallery_image_ids = AMP_lookup('galleries_by_image', $this->getName()); if ($gallery_image_ids) { require_once 'Modules/Gallery/Image.inc.php'; $finder = new GalleryImage(AMP_Registry::getDbcon()); $images = $finder->find(array('id' => array_keys($gallery_image_ids))); foreach ($images as $gallery_image) { $gallery_image->delete(); } } return parent::delete(); }
function _afterSave() { $this->_updateFormRef('AMPSchedule'); $this->_updateFormRef('AMPAppointment'); parent::_afterSave(); }
function export_keys() { $do_not_export = array('test', 'subtitile', 'shortdesc', 'type', 'picture'); $keys = parent::export_keys(); return array_diff($keys, $do_not_export); }
function _afterCreate() { $this->_create_section_header(); $this->_create_permission_values(); parent::_afterCreate(); }
function _afterSave() { $this->_renewPermissions(); parent::_afterSave(); }
function export_keys() { $do_not_export = array('endorse', 'enddate', 'areaID', 'endtime'); $legacy_keys = array_keys($this->_legacy_fields); $keys = parent::export_keys(); return array_diff($keys, $legacy_keys, $do_not_export); }
function _afterSave() { AMP_permission_update(); parent::_afterSave(); }
function setData($data) { $data['service'] = $this->service; return parent::setData($data); }
function _afterCreate() { $this->consider_notifying_admin(); parent::_afterCreate(); }
function insertData($values) { require_once 'AMP/System/Data/Item.inc.php'; $source = new AMPSystem_Data_Item($this->dbcon); $source->setSource($this->datatable); $source->setData($values); $sql = $source->debug_insertSQL(); if ($this->dbcon->Execute($sql)) { if (defined($this->_debug_constant) && constant($this->_debug_constant)) { AMP_DebugSQL($sql, get_class($this) . " insert"); } return $this->dbcon->Affected_Rows(); } trigger_error(sprintf(AMP_TEXT_ERROR_DATABASE_SQL_FAILED, get_class($this), 'insert', $this->dbcon->ErrorMsg(), $sql)); return false; }
function _afterSave() { $this->update_routes(); parent::_afterSave(); }
function _afterSave() { $data = $this->getData(); parent::_afterSave(); }
function init(&$dbcon, $id = null) { parent::init($dbcon, $id); $this->_initEngine(); }
function _afterSave() { $this->_saveLocations(); parent::_afterSave(); }