3 function smarty_function_get_k_neurons($params,&$smarty) {
6 if (isset($params['offset']) && (is_numeric($params['offset']))) {
7 $offset=$params['offset'];
9 if (isset($params['listing_amount']) && (is_numeric($params['listing_amount']))) {
10 $listing_amount=$params['listing_amount'];
11 } else {$listing_amount=DEFAULT_LISTING_AMOUNT
;}
12 if (isset($_POST['interval']) && (is_numeric($_POST['interval']))) {
13 $interval= $_POST['interval'];
14 } else {$interval = 1;}
15 if (isset($params['vector']) && ($params['vector'])) {
16 $vector=$params['vector'];
18 } else {$vector="00";}
21 // XXX other parameters
22 $k_array=nodes
::getKNeurons($_SESSION['user_id'],$offset);
25 $smarty->assign('get_k_neurons',$k_array);
This page took 0.366086 seconds and 4 git commands to generate.