54 public static function add($data)
59 $result = parent::add($data);
60 if($result[
'success'])
62 $entityClass = static::getEntityClass(
'link');
63 $loc = self::prepareLinksForSaving($entityClass, $loc);
65 $entityClass::resetMultipleForOwner($result[
'id'], $loc);
71 public static function update($gId, $data)
76 $result = parent::update($gId, $data);
77 if($result[
'success'])
79 $entityClass = static::getEntityClass(
'link');
80 $loc = self::prepareLinksForSaving($entityClass, $loc);
82 $entityClass::resetMultipleForOwner($gId, $loc);