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