function moveItem($direction, $id_val) { //require_once(_base_.'/lib/lib.utils.php'); $table = $this->_getMainTable(); utilMoveItem($direction, $table, "location_id", $id_val, "ord"); }
/** * this function move a competence up and down in the sequence * @param string $direction the direction 'up' or 'down' of the movement * @param int $id_competence the id of the competence to move * @param int $id_portfolio the id of the eportfolio that contain the competence */ function moveCompetence($direction, $id_competence, $id_portfolio) { return utilMoveItem($direction, $this->getTableCompetences(), 'id_competence', $id_competence, 'sequence', " id_portfolio = '" . $id_portfolio . "' "); }