Ajout des valeurs en dehors de la session

This commit is contained in:
Michael RICOIS 2012-02-22 15:43:35 +00:00
parent 537340d274
commit c1c655d84b

View File

@ -612,13 +612,16 @@ Class Fields
);
protected $requeteSql = array('cj');
public function getValues()
public function getValues($val = null)
{
require_once 'Scores/SessionCiblage.php';
$session = new SessionCiblage();
$values = array();
if ( $val === null ) {
require_once 'Scores/SessionCiblage.php';
$session = new SessionCiblage();
$criteres = $session->getCriteres();
}
$values = array();
foreach($session->getCriteres() as $key => $item)
foreach($val as $key => $item)
{
if($item != '') {
if($this->fields[$key]['type'] == 'interval' or