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 $set=nodes
::getKNeurons($params['user_id'],20); // XXX offset
23 while ($set->next()) {
24 $k_array[]=$set->getRecord();
27 $smarty->assign('get_k_neurons',$k_array);
This page took 0.309497 seconds and 5 git commands to generate.