Beispiel #1
0
            $method->case = $runcase;
            if ($runcase == "imported") {
                $method->setAlternatives($nAlternativas);
                //num of alternatives
                $method->setCriteria($nCriterios);
                //num of criteria
                $method->setExperts($nExpertos);
                //num of experts
                $method->setGranularity($G);
                //granularity
            }
            $method->debug = false;
            //by default
            if (file_exists($weight_file)) {
                //system_message("+++ uso el fichero " . $weight_file);
                $method->setWFile($weight_file);
            } else {
                //register_error("--- no puedo leer el fichero ". $weight_file);
                $method->setWFile("");
            }
            $model->collectiveValoration = $method->run();
            unset($method);
            //destroys the object
            //echo "@ " . $model->collectiveValoration;
        }
    }
}
//To show the objects first we get the list
$method_list = elgg_list_entities_from_metadata(['type' => 'object', 'subtype' => 'mcdm', 'pagination' => false]);
if (!$method_list) {
    $method_list = '<p class="mtm">' . elgg_echo('hflts:evaluation:not:found') . '</p>';