original_string: public function addActivity($name, $organizationId)
      {
          $model = new \MUtil_Model_TableModel('gems__agenda_activities');
          \Gems_Model::setChangeFieldsByPrefix($model, 'gaa');
  
          $values = array(
              'gaa_name'            => $name,
              'gaa_id_organization' => $organizationId,
              'gaa_match_to'        => $name,
              'gaa_active'          => 1,
              'gaa_filter'          => 0,
          );
  
          $result = $model->save($values);
  
          $this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('activity', 'activities'));
  
          return $result;
      }
code: public function addActivity($name, $organizationId)
      {
          $model = new \MUtil_Model_TableModel('gems__agenda_activities');
          \Gems_Model::setChangeFieldsByPrefix($model, 'gaa');
  
          $values = array(
              'gaa_name'            => $name,
              'gaa_id_organization' => $organizationId,
              'gaa_match_to'        => $name,
              'gaa_active'          => 1,
              'gaa_filter'          => 0,
          );
  
          $result = $model->save($values);
  
          $this->cache->clean(\Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('activity', 'activities'));
  
          return $result;
      }
code_tokens: public function addActivity ( $ name , $ organizationId ) { $ model = new \ MUtil_Model_TableModel ( 'gems__agenda_activities' ) ; \ Gems_Model :: setChangeFieldsByPrefix ( $ model , 'gaa' ) ; $ values = array ( 'gaa_name' => $ name , 'gaa_id_organization' => $ organizationId , 'gaa_match_to' => $ name , 'gaa_active' => 1 , 'gaa_filter' => 0 , ) ; $ result = $ model -> save ( $ values ) ; $ this -> cache -> clean ( \ Zend_Cache :: CLEANING_MODE_MATCHING_ANY_TAG , array ( 'activity' , 'activities' ) ) ; return $ result ; }
docstring: Add Activities to the table
  
  Override this method for other defaults
  
  @param string $name
  @param int $organizationId
  @return array
docstring_tokens: Add Activities to the table