public function beforeSave() { $isStatic = intval($this->getProperty('static', 0)); if ($isStatic == 1) { $staticFile = $this->getProperty('static_file'); if (empty($staticFile)) { $this->addFieldError('static_file', $this->modx->lexicon('static_file_ns')); } } return parent::beforeSave(); }
public function afterSave() { $this->saveEvents(); return parent::afterSave(); }
public function afterSave() { $this->saveTemplateVariables(); return parent::afterSave(); }
/** * Add post-saving options to TVs * * {@inheritDoc} * @return boolean */ public function afterSave() { $this->setTemplateAccess(); $this->setResourceGroupAccess(); $this->setMediaSources(); return parent::afterSave(); }