Exemplo n.º 1
0
 /**
  * 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;
     }
 }
Exemplo n.º 2
0
 /**
  * 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();
 }