<commit_before><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Group Controller Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Users    
 */
class ComUsersControllerGroup extends ComDefaultControllerDefault
{ 
    protected function _actionGet(KCommandContext $context)
    {
        $view    = $this->getView();
        $package = KInflector::pluralize($this->getIdentifier()->name);
        
        if($view instanceof KViewTemplate) 
	    {     
	        //Set the layout identifier
	        $layout = clone $view->getIdentifier();
	        $layout->package  = $package;
	        $layout->name     = $view->getLayout();
	        $layout->filepath = ''; 
 
	        $view->setLayout($layout);
	        
	        //Set the template identifier
	        $template = $view->getTemplate()->getIdentifier();
	        $template->package = $package;
	    }
	    
	    //Set the toolbar
	    if($this->isCommandable()) {
	        $this->setToolbar('com://admin/'.$package.'.controller.toolbar.'.$view->getName());
	    }
	    
        return parent::_actionGet($context);
    }
    
    public function setModel($model)
    {
        $model = parent::setModel($model);
        $model->package = KInflector::pluralize($this->getIdentifier()->name);
        
        return $model; 
    }
}<commit_msg>Extend from ComGroupsControllerGroup<commit_after><?php
/**
 * @version     $Id$
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Group Controller Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/johanjanssens>
 * @category	Nooku
 * @package     Nooku_Server
 * @subpackage  Users    
 */
class ComUsersControllerGroup extends ComGroupsControllerGroup
{ 
    
}
{'fraction_non_alphanumeric': 0.14463176574977818, 'fraction_numerical': 0.0044365572315882874, 'mean_word_length': 2.512461059190031, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6077853', 'n_tokens_mistral': 722, 'n_tokens_neox': 690, 'n_words': 130}