Subversion Repositories Applications.referentiel

Rev

Rev 19 | Rev 24 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 23
Line 128... Line 128...
128
				$sortie[$nom] = $params[$num];
128
				$sortie[$nom] = $params[$num];
129
			}
129
			}
130
		}
130
		}
131
		return $sortie;
131
		return $sortie;
132
	}
132
	}
-
 
133
	
-
 
134
	protected function traiterParametresPost($params_attendu, $params, $pourBDD = true) {
-
 
135
		$sortie = array();
-
 
136
		foreach ($params_attendu as $num => $nom) {
-
 
137
			if (isset($params[$nom]) && $params[$nom] != '') {
-
 
138
				if ($pourBDD) {
-
 
139
					$params[$nom] = $this->bdd->quote($params[$nom]);
-
 
140
				}
-
 
141
				$sortie[$nom] = $params[$nom];
-
 
142
			} else {
-
 
143
				if ($pourBDD) {
-
 
144
					$sortie[$nom] = 'NULL';
-
 
145
				} else {
-
 
146
					$sortie[$nom] = '';
-
 
147
				}
-
 
148
			}
-
 
149
		}
-
 
150
		return $sortie;
-
 
151
	}
133
}
152
}
134
?>
153
?>
135
154