<commit_before><?php
/**
 * Menu template
 *
 * @package    Web
 * @subpackage Layout
 * @author     lhe
 */
class Menu extends TTemplateControl
{
    /**
     * (non-PHPdoc)
     * @see TControl::onLoad()
     */
	public function onLoad($param)
	{
	}
	public function getMenuItems()
	{
		$pageItem = trim($this->getPage()->menuItem);
		$array = array(
// 			'' => array('url' => '/', 'name' => 'Products', 'icon' => '<span class="glyphicon glyphicon-home"></span>')
			'product' => array(
				'name' => 'Products',
				'url' => '/products.html',
				'icon' => '<span class="glyphicon glyphicon-tag"></span>'
			)
		);
		if(AccessControl::canAccessResourcePage(Core::getRole()) === true) {
		    $array['Resources'] = array(
				'icon' => '<span class="glyphicon glyphicon-th-list"></span>'
				,'ingredients' => array('url' => '/ingredients.html', 'name' => 'Ingredients', 'icon' => '')
				,'allergents' => array('url' => '/allergents.html', 'name' => 'Allergents', 'icon' => '')
				,'nutritions' => array('url' => '/nutritions.html', 'name' => 'Nutritions', 'icon' => '')
				,'servemeasurements' => array('url' => '/servemeasurements.html', 'name' => 'Serve Measurements', 'icon' => '')
// 				,'labels' => array('url' => '/labels.html', 'name' => 'Labels', 'icon' => '')
				,'materials' => array('url' => '/materials.html', 'name' => 'Materials', 'icon' => '')
// 				,'addresses' => array('url' => '/addresses.html', 'name' => 'Addresses', 'icon' => '')
				,'categorie' => array('url' => '/categories.html', 'name' => 'Category', 'icon' => '')
				,'rawmaterial' => array('url' => '/rawmaterials.html', 'name' => 'RawMaterial', 'icon' => '')
			);
		}
		if(AccessControl::canAccessUserPage(Core::getRole()) === true) {
    		$array['System'] = array(
				'icon' => '<span class="glyphicon glyphicon-cog"></span>'
				,'useraccounts' => array('url' => '/useraccounts.html', 'name' => 'User Accounts', 'icon' => '')
				,'stores' => array('url' => '/stores.html', 'name' => 'Stores', 'icon' => '')
			);
		}
		$array['help'] = array(
			'name' => 'Help',
			'url' => '/help.html',
			'icon' => '<span class="glyphicon glyphicon-info-sign"></span>'
		);
		$html = "<ul class='nav navbar-nav'>";
			foreach($array as $key => $item)
			{<commit_msg>wording<commit_after><?php
/**
 * Menu template
 *
 * @package    Web
 * @subpackage Layout
 * @author     lhe
 */
class Menu extends TTemplateControl
{
    /**
     * (non-PHPdoc)
     * @see TControl::onLoad()
     */
	public function onLoad($param)
	{
	}
	public function getMenuItems()
	{
		$pageItem = trim($this->getPage()->menuItem);
		$array = array(
// 			'' => array('url' => '/', 'name' => 'Products', 'icon' => '<span class="glyphicon glyphicon-home"></span>')
			'product' => array(
				'name' => 'Products',
				'url' => '/products.html',
				'icon' => '<span class="glyphicon glyphicon-tag"></span>'
			)
		);
		if(AccessControl::canAccessResourcePage(Core::getRole()) === true) {
		    $array['Resources'] = array(
				'icon' => '<span class="glyphicon glyphicon-th-list"></span>'
				,'ingredients' => array('url' => '/ingredients.html', 'name' => 'Ingredients', 'icon' => '')
				,'allergents' => array('url' => '/allergents.html', 'name' => 'Allergents', 'icon' => '')
				,'nutritions' => array('url' => '/nutritions.html', 'name' => 'Nutritions', 'icon' => '')
				,'servemeasurements' => array('url' => '/servemeasurements.html', 'name' => 'Serve Measurements', 'icon' => '')
// 				,'labels' => array('url' => '/labels.html', 'name' => 'Labels', 'icon' => '')
				,'materials' => array('url' => '/materials.html', 'name' => 'Materials', 'icon' => '')
// 				,'addresses' => array('url' => '/addresses.html', 'name' => 'Addresses', 'icon' => '')
				,'categorie' => array('url' => '/categories.html', 'name' => 'Category', 'icon' => '')
				,'rawmaterial' => array('url' => '/rawmaterials.html', 'name' => 'Raw Materials', 'icon' => '')
			);
		}
		if(AccessControl::canAccessUserPage(Core::getRole()) === true) {
    		$array['System'] = array(
				'icon' => '<span class="glyphicon glyphicon-cog"></span>'
				,'useraccounts' => array('url' => '/useraccounts.html', 'name' => 'User Accounts', 'icon' => '')
				,'stores' => array('url' => '/stores.html', 'name' => 'Stores', 'icon' => '')
			);
		}
		$array['help'] = array(
			'name' => 'Help',
			'url' => '/help.html',
			'icon' => '<span class="glyphicon glyphicon-info-sign"></span>'
		);
		$html = "<ul class='nav navbar-nav'>";
			foreach($array as $key => $item)
			{
{'fraction_non_alphanumeric': 0.26477121279431365, 'fraction_numerical': 0.0, 'mean_word_length': 3.8108974358974357, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '229099', 'n_tokens_mistral': 1741, 'n_tokens_neox': 1543, 'n_words': 291}