public function get_scale_configuration($scaleid, $config) {
        $asarray = json_decode($config);
        $asarray[0]->scaleid = $scaleid;
        return json_encode($asarray);
    }
public function get_scale_configuration($scaleid, $config) {
        $asarray = json_decode($config);
        $asarray[0]->scaleid = $scaleid;
        return json_encode($asarray);
    }
public function get_scale_configuration ( $ scaleid , $ config ) { $ asarray = json_decode ( $ config ) ; $ asarray [ 0 ] -> scaleid = $ scaleid ; return json_encode ( $ asarray ) ; }
Recreate the scale config to point to a new scaleid.
@param int $scaleid
@param string $config json encoded scale data.
Recreate the scale config to point to a new scaleid .