Ejemplo n.º 1
0
 function init($module, $lang, $idURL, $categorie, $sscategorie, $type, $sort, $order, $page, $search)
 {
     $entry = Db::fetch_row(Query::selectById($idURL));
     $getColumn = Query::selectAll();
     $output = Details::debut($module, $lang, $categorie, $sscategorie, $idURL);
     for ($i = 0; $i < Db::num_fields($getColumn); $i++) {
         $column = Db::fetch_field($getColumn);
         $column = $column->name;
         $details = $entry[$i];
         $field = Utils::findField($column);
         @(!(include_once 'controller/fields/' . $field . '.class.php'));
         if (class_exists($field)) {
             if ($field == "date") {
                 $details = Utils::datefr($details);
             }
             $getValue = new $field($lang, $details, $column, $type);
             $details = $getValue->details;
             if ($this->exclusion($sscategorie, $column)) {
                 $output .= Details::detail($details);
             }
         }
     }
     $output .= Details::fin();
     return $output;
 }
Ejemplo n.º 2
0
 function init($mySql, $queries, $lang, $module, $idUrl)
 {
     $HelperOther = new HelperOther();
     $Details = new Details();
     $Action = new Action();
     $entry = $mySql->fetch_row($queries->selectById($mySql, $module, $idUrl));
     $getColumn = $queries->selectAll($mySql, $module);
     $layout = $Details->debut($lang, $module);
     for ($i = 0; $i < $mySql->num_fields($getColumn); $i++) {
         $column = $mySql->fetch_field($getColumn);
         $column = $column->name;
         $details = $entry[$i];
         if ($Action->exclusion($module, $column)) {
             $field = $HelperOther->findField($column);
             @(!(include_once 'controller/fields/' . $field . '.class.php'));
             if (class_exists($field)) {
                 $getValue = new $field($lang, $module, $details, $column, DETAIL);
                 $details = $getValue->details;
                 $layout .= $Details->detail($details);
             }
         }
     }
     $layout .= $Details->fin();
     return $layout;
 }