save configuration

@param ConfigGroup $group [description]

@return [type]
559624
public function saveAction(ConfigGroup $group)
    {
        $form = $this->createConfigGroupForm($group);
        $form->bind($this->getRequest());
        $configValueManager = $this->container->get('admin.configuration.configvalue_manager');
        foreach ($form as $sub) {
            $configValue = $sub->getData();
            $configValueManager->update($configValue);
        }
        $message = $this->container->get('translator')->trans(
            'The configuration has been successfully saved.',
            array(),
            'VinceTAdminConfigurationBundle'
        );
        $this->get('session')->getFlashBag()->add('sonata_flash_success', $message);

        return $this->redirect(
            $this->generateUrl(
                'vince_t_admin_configuration_group',
                array(
                    'sname' => $group->getConfigSection()->getName(),
                    'gname' => $group->getName()
                )
            )
        );
    }
113029
public function clearGroup($group)
    {
        $this->_File = null;

        $prefix = (string)$this->_config['prefix'];

        $directoryIterator = new RecursiveDirectoryIterator($this->_config['path']);
        $contents = new RecursiveIteratorIterator(
            $directoryIterator,
            RecursiveIteratorIterator::CHILD_FIRST
        );
        $filtered = new CallbackFilterIterator(
            $contents,
            function (SplFileInfo $current) use ($group, $prefix) {
                if (!$current->isFile()) {
                    return false;
                }

                $hasPrefix = $prefix === ''
                    || strpos($current->getBasename(), $prefix) === 0;
                if ($hasPrefix === false) {
                    return false;
                }

                $pos = strpos(
                    $current->getPathname(),
                    DIRECTORY_SEPARATOR . $group . DIRECTORY_SEPARATOR
                );

                return $pos !== false;
            }
        );
        foreach ($filtered as $object) {
            $path = $object->getPathname();
            $object = null;
            // @codingStandardsIgnoreLine
            @unlink($path);
        }

        return true;
    }
1374377
public function get($key, $group = self::DEFAULT_GROUP, $default = null) {
        return isset($this->settings[$group][$key]) ? $this->settings[$group][$key] : $default;
    }
947876
public function create($group)
    {
        if (is_string($group)) {
            $group = $this->groupFactory->createForPlayer($group);
        } else {
            if (is_array($group)) {
                $group = $this->groupFactory->createForPlayers($group);
            }
        }

        if (!is_null($this->guiHandler->getManialink($group, $this))) {
            $this->update($group);

            return $group;
        }


        $ml = $this->createManialink($group);
        $this->guiHandler->addToDisplay($ml, $this);

        $this->createContent($ml);
        $this->updateContent($ml);

        return $group;
    }
163978
public function setConfigGroup(\VinceT\AdminConfigurationBundle\Entity\ConfigGroup $configGroup)
    {
        $this->configGroup = $configGroup;

        return $this;
    }
441978
public function deleteServiceGroup($group)
    {
        $filename = $this->getConfigFilename($group);
        $this->getFilesystem()->remove($filename);

        // Unlike normal arrays, unset() will throw errors here if the key
        // doesn't exist.
        if (isset($this[$group])) {
            unset($this[$group]);
        }

        unset($this->removed[$group]);
    }
636474
public function change_group($group)
    {

        if (empty($group) || !is_int($group)) return false;

        if (chgrp($this->path . $this->filename, $group)) {
            return $this->open($this->path . $this->filename);
        }

        return false;
    }
886144
public function init($group)
	{
		// Lets validate if the post type exists and if so, continue.
		$postTypeModel = $this->getPostType($group);
		if(!$postTypeModel){
    		$errorMessages = 'You are not authorized to do this.';
    		return $this->abort($errorMessages);
    	}

		// Receiving the current data of the group
		$config = NikuConfig::where('group', '=', $group)
			->get()
			->keyBy('option_name')
			->toArray();

		$templates = $postTypeModel->view;

		// Appending the key added in the config to the array
        // so we can use it very easliy in the component.
        foreach($templates as $key => $template){

	    	if(!empty($template['customFields'])){

	    		// For each custom fields
	            foreach($template['customFields'] as $ckey => $customField){
	                $templates[$key]['customFields'][$ckey]['id'] = $ckey;

	                // Adding the values to the result
	            	if(!empty($config[$ckey])){
	            		$templates[$key]['customFields'][$ckey]['value'] = $config[$ckey]['option_value'];
	            	}
	            }
	        }
	    }

		$collection = collect([
			'config' => $this->getConfig($postTypeModel),
			'templates' => $templates,
		]);

		return response()->json($collection);
	}
12098
public function clear($group = null) {
        if( isset($group) )
            unset($this->settings[$group]);
        else
            $this->settings = [];

        return $this;
    }
749394
public function saveOptions($config = null)
    {
        if ($config === null) {
            return $this->getConfig('saveOptions');
        }

        return $this->setConfig('saveOptions', $config);
    }
628001
public function getConfigFromFile($group, $name)
    {
        // Do we have a value in the ini?
        // Does it validate?
        if (isset($this->iniSettings[$group][$name]) === true &&
            $this->security->evaluateSetting($group, $name, $this->iniSettings[$group][$name]) === true
        ) {
            return $this->iniSettings[$group][$name];
        }

        return null;
    }
1355557
public function getConfigFilename($group)
    {
        $conf_files = $this->config->get('conf_files');
        if (!isset($conf_files[$group])) {
            $filename = $this->config['conf_dir'] . '/' . $group . '.json';
            $conf_files[$group] = $filename;
        }
        $this->config->set('conf_files', $conf_files);
        return $conf_files[$group];
    }
271873
public function group($group)
    {
        $group = $this->prepareNames(func_get_args(), false);
        $this->group = $group;
        return $this;
    }
754549
public static function addGroup($group) {
		
		if(false === is_array($group)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type array, "%s" given', __METHOD__, gettype($group)), E_USER_ERROR);
		}

		static :: $group[] = $group;
	}
871416
def _save_group(self, group_id, result):
        """"""
        self.TaskSetModel._default_manager.store_result(group_id, result)
        return result
367993
protected function group($group)
    {
        return $this->dispatcher->run($group, $this->assets, $this->path);
    }
111707
public static function save_str($str, $group, $ext, $fsencoding = '') {
        return self::save($str, $group, $ext, $fsencoding);
    }