lang
This commit is contained in:
@@ -61,7 +61,7 @@ wrenchboard=> SELECT * FROM use_preferences WHERE status = 1 ORDER BY id ASC;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ret = PHP_API_OK;
|
||||
|
||||
@@ -119,6 +119,26 @@ class ResultFormatter extends Model
|
||||
|
||||
// id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status
|
||||
switch ($in["action"]) {
|
||||
case WRENCHBOARD_ACCOUNT_PREFERENCES:
|
||||
$total = $out["total_record"];
|
||||
$res = array(
|
||||
"status" => $out["status"],
|
||||
"total_record" => ($total - 1),
|
||||
"internal_return" => $out["internal_return"],
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$res["result_list"][] = array(
|
||||
"description" => $out["description_${key}"],
|
||||
"uid" => $out["uid_${key}"],
|
||||
"pref" => $out["pref_${key}"],
|
||||
"lang" => $out["lang_${key}"],
|
||||
"added" => $out["added_${key}"],
|
||||
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case WRENCHBOARD_ACCT_NOTIFICATIONS:
|
||||
$total = $out["total_record"];
|
||||
|
||||
Reference in New Issue
Block a user