<commit_before><?php
/**
 * AcidFarm - Yet Another Framework
 *
 * Requires PHP version 5.3
 *
 * @author    ACID-Solutions <<EMAIL>>
 * @category  AcidFarm
 * @package   User Module
 * @version   0.1
 * @since     Version 0.5
 * @copyright 2011 ACID-Solutions SARL
 * @license   http://www.acidfarm.net/license
 * @link      http://www.acidfarm.net
 */

/**
 * Permet à l'utilisateur d'altérer tous les AcidModule 
 * @package   User Module
 */
abstract class AcidModule extends AcidModuleCore { 
	
	/**
	 * Retourne l'url du module
	 * @param array $vals
	 * @return string
	 */
	public static function buildUrl($vals=array()) {
		return Route::buildUrl(static::checkTbl(),$vals);
	}
	
	/**
	 * Retourn l'url associé à l'objet
	 * @return string
	 */
	public function url() {
		return $this->buildUrl($this->getVals());
	}
	
}<commit_msg>coquilles<commit_after><?php
/**
 * AcidFarm - Yet Another Framework
 *
 * Requires PHP version 5.3
 *
 * @author    ACID-Solutions <<EMAIL>>
 * @category  AcidFarm
 * @package   User Module
 * @version   0.1
 * @since     Version 0.5
 * @copyright 2011 ACID-Solutions SARL
 * @license   http://www.acidfarm.net/license
 * @link      http://www.acidfarm.net
 */

/**
 * Permet à l'utilisateur d'altérer tous les AcidModule
 * @package   User Module
 */
abstract class AcidModule extends AcidModuleCore {

	/**
	 * Retourne l'url du module
	 * @param array $vals
	 * @return string
	 */
	public static function buildUrl($vals=array()) {
		return Route::buildUrl(static::checkTbl(),$vals);
	}

	/**
	 * Retourne l'url associé à l'objet
	 * @return string
	 */
	public function url() {
		return $this->buildUrl($this->getVals());
	}

	/**
	 * Methode d'affichage des champs multilangues
	 * @param array $elt
	 * @param string $key
	 * @param int $split
	 * @return string
	 */
	public static function printAdminListLang($elt,$key,$split=null) {
		$val = '';
		$m = static::build($elt);

		$val = '<table style="width:100%; min-width:0px;">';
		foreach (Acid::get('lang:available') as $l) {
			$value = $m->get($m->langKey($key,$l));
			$value = $split ? AcidVarString::split($value,$split) : $value;
			if ($value) {
				$val .= '<tr><td style="width:15px;" ><img style="max-width:15px;" src="'. Acid::get('url:img') . 'langs/'.$l.'_sel.png" alt="'.$l.'" title="'.$l.'" /><td>'.$value.'</td></td></tr>';
			}
		}
		$val .= '</table>';

		return $val;
	}

}
{'fraction_non_alphanumeric': 0.1796157059314954, 'fraction_numerical': 0.011695906432748537, 'mean_word_length': 3.3784277879341866, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 22, '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': '3059007', 'n_tokens_mistral': 918, 'n_tokens_neox': 831, 'n_words': 198}