Esempio n. 1
0
 function readData($schedule_id)
 {
     $result = parent::readData($schedule_id);
     $this->_readSchedulePlugins('AMPSchedule');
     $this->_readSchedulePlugins('AMPAppointment');
     return $result;
 }
Esempio n. 2
0
 function getData($fields = null)
 {
     if (isset($fields)) {
         return parent::getData($fields);
     }
     return array_merge($this->_getTemplateArray(), parent::getData());
 }
Esempio n. 3
0
 function _afterSave()
 {
     $this->_renewPermissions();
     $this->_updateSections();
     AMP_permission_update();
     parent::_afterSave();
 }
Esempio n. 4
0
 function _afterSave()
 {
     $reltype = $this->getData('reltype');
     $this->_removeRelatedLinks();
     $this->_saveRelatedLinks($reltype);
     parent::_afterSave();
 }
Esempio n. 5
0
 function _afterSave()
 {
     $this->_updateTemplates();
     $this->_updatePHPlistConfig();
     $this->_updatePunbbConfig();
     $this->_save_custom_config();
     $this->_clearCached();
     parent::_afterSave();
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
0
 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();
 }
Esempio n. 8
0
 function _afterSave()
 {
     $this->_updateFormRef('AMPSchedule');
     $this->_updateFormRef('AMPAppointment');
     parent::_afterSave();
 }
Esempio n. 9
0
 function export_keys()
 {
     $do_not_export = array('test', 'subtitile', 'shortdesc', 'type', 'picture');
     $keys = parent::export_keys();
     return array_diff($keys, $do_not_export);
 }
Esempio n. 10
0
 function _afterCreate()
 {
     $this->_create_section_header();
     $this->_create_permission_values();
     parent::_afterCreate();
 }
Esempio n. 11
0
 function _afterSave()
 {
     $this->_renewPermissions();
     parent::_afterSave();
 }
Esempio n. 12
0
 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);
 }
Esempio n. 13
0
 function _afterSave()
 {
     AMP_permission_update();
     parent::_afterSave();
 }
Esempio n. 14
0
 function setData($data)
 {
     $data['service'] = $this->service;
     return parent::setData($data);
 }
Esempio n. 15
0
 function _afterCreate()
 {
     $this->consider_notifying_admin();
     parent::_afterCreate();
 }
Esempio n. 16
0
 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;
 }
Esempio n. 17
0
 function _afterSave()
 {
     $this->update_routes();
     parent::_afterSave();
 }
Esempio n. 18
0
 function _afterSave()
 {
     $data = $this->getData();
     parent::_afterSave();
 }
Esempio n. 19
0
 function init(&$dbcon, $id = null)
 {
     parent::init($dbcon, $id);
     $this->_initEngine();
 }
Esempio n. 20
0
 function _afterSave()
 {
     $this->_saveLocations();
     parent::_afterSave();
 }