/** * @param DbHelper $objDb */ public function lfRankMove(&$objDb, $parent_category_id, $product_id) { $key = 'pos-' . $product_id; $input_pos = mb_convert_kana($_POST[$key], 'n'); if (Utils::sfIsInt($input_pos)) { $where = 'category_id = ' . Utils::sfQuoteSmart($parent_category_id); $objDb->moveRank('dtb_product_categories', 'product_id', $product_id, $input_pos, $where); } }