/** * Function that allows child controller access to model data after the data has been saved. * * @param JModelLegacy $model The data model object. * @param array $validData The validated data. * * @return void * @since 3.1 */ protected function postSaveHook(JModelLegacy $model, $validData = array()) { $task = $this->getTask(); $item = $model->getData(); $id = $item->get('id'); $tags = $validData['tags']; if ($tags) { $item->tags = new JHelperTags(); $item->tags->getTagIds($item->id, 'com_users.user'); $item->metadata['tags'] = $item->tags; } }
/** * Function that allows child controller access to model data after the data has been saved. * * @param JModelLegacy $model The data model object. * @param array $validData The validated data. * * @return void * @since 3.1 */ protected function postSaveHook(JModelLegacy $model, $validData = array()) { $item = $model->getData(); }