Example #1
0
 /**
  * Override the save function.
  *
  * @return bool
  */
 public function save()
 {
     // Save generic stuff
     if (!parent::save()) {
         return false;
     }
     // Now save specific stuff
     _elgg_disable_caching_for_entity($this->guid);
     $ret = create_group_entity($this->get('guid'), $this->get('name'), $this->get('description'));
     _elgg_enable_caching_for_entity($this->guid);
     return $ret;
 }
Example #2
0
 /**
  * Override the save function.
  *
  * @return bool
  */
 public function save()
 {
     // Save generic stuff
     if (!parent::save()) {
         return false;
     }
     // Now save specific stuff
     return create_group_entity($this->get('guid'), $this->get('name'), $this->get('description'));
 }