public function handle_request_internal() { $brokerId = $this->_params['brokerId']; $type = $this->_params['type']; Bll_Broker_AppSwitch::on($brokerId, $type); return API_Result::create()->ok()->data(array('status' => 1))->toArray(); }