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;
    }
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;
    }
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 ; }
Add Activities to the table

Override this method for other defaults

@param string $name
@param int $organizationId
@return array
Add Activities to the table