<commit_before><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package     Koowa_View
 * @subpackage  Html
 * @copyright	Copyright (C) 2007 - 2009 <NAME> and <NAME>. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.koowa.org
 */

/**
 * View HTML Class
 *
 * @author		<NAME> <<EMAIL>>
 * @category	Koowa
 * @package     Koowa_View
 * @subpackage  Html
 */

class KViewHtml extends KViewAbstract
{
	public function __construct($options = array())
	{
		$options = $this->_initialize($options);
		
		// Add a rule to the template for form handling and secrity tokens
		KTemplateDefault::addRules(array(KFactory::get('lib.koowa.template.rule.form')));
		
		// Set a base path for use by the view
		$this->assign('baseurl', $options['base_url']);
		
		parent::__construct($options);
	}
	
	public function display($tpl = null)
	{
		$prefix = $this->getClassName('prefix');

		//Set the main stylesheet for the component
		KViewHelper::_('stylesheet', $prefix.'.css', 'media/com_'.$prefix.'/css/');

		parent::display($tpl);
	}
}<commit_msg>KViewHtml::__construct now replaces joomla's toolbar<commit_after><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package     Koowa_View
 * @subpackage  Html
 * @copyright	Copyright (C) 2007 - 2009 <NAME> and <NAME>. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.koowa.org
 */

/**
 * View HTML Class
 *
 * @author		<NAME> <<EMAIL>>
 * @category	Koowa
 * @package     Koowa_View
 * @subpackage  Html
 */

class KViewHtml extends KViewAbstract
{
	public function __construct($options = array())
	{
		$options = $this->_initialize($options);
		
		// Add a rule to the template for form handling and secrity tokens
		KTemplateDefault::addRules(array(KFactory::get('lib.koowa.template.rule.form')));
		
		// Set a base path for use by the view
		$this->assign('baseurl', $options['base_url']);
		
		// Replace Joomla's toolbar with our own
		jimport('joomla.html.toolbar');
		$bar = & JToolBar::getInstance('toolbar');
		$bar = KFactory::get('admin::com.'.$this->getClassName('prefix').'.toolbar.'.$this->getClassName('suffix'));
		
		parent::__construct($options);
	}
	
	public function display($tpl = null)
	{
		$prefix = $this->getClassName('prefix');

		//Set the main stylesheet for the component
		KViewHelper::_('stylesheet', $prefix.'.css', 'media/com_'.$prefix.'/css/');

		parent::display($tpl);
	}
}
{'fraction_non_alphanumeric': 0.16873250699720113, 'fraction_numerical': 0.008796481407437025, 'mean_word_length': 3.8771929824561404, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4655018', 'n_tokens_mistral': 903, 'n_tokens_neox': 823, 'n_words': 195}