function init($mySql, $queries, $lang, $module, $moduleDispatch, $idUrl, $categorie, $sscategorie, $search, $sort, $order, $page) { $HelperOther = new HelperOther(); $Deletes = new Deletes(); $Action = new Action(); $entry = $mySql->fetch_row($queries->selectById($mySql, $moduleDispatch, $idUrl)); $getColumn = $queries->selectAll($mySql, $moduleDispatch); $layout = $Deletes->debut($lang, $module, $moduleDispatch, $idUrl, $categorie, $sscategorie, $search, $sort, $order, $page); for ($i = 0; $i < $mySql->num_fields($getColumn); $i++) { $column = $mySql->fetch_field($getColumn); $column = $column->name; $delete = $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, $moduleDispatch, $delete, $column, DELETE); $delete = $getValue->details; // Idem que le delete $layout .= $Deletes->delete($delete); } } } $layout .= $Deletes->fin($lang, $moduleDispatch); return $layout; }
function init($module, $lang, $idURL, $categorie, $sscategorie, $type, $sort, $order, $page, $search) { $entry = Db::fetch_row(Query::selectById($idURL)); $getColumn = Query::selectAll(); $output = Deletes::debut($module, $lang, $categorie, $sscategorie, $sort, $order, $page, $idURL, $search); 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 .= Deletes::delete($details); } } } $output .= Deletes::fin($module, $lang); return $output; }