public function allotOrder(Application_Model_Orders $order, $orderType = 'pickup') { $data = array('order_status' => $order->__get("order_status")); if ($orderType == 'pickup') { $data['order_pickup_boy'] = $order->__get("order_pickup_boy"); } else { $data['order_delivery_boy'] = $order->__get("order_delivery_boy"); } $where = "order_id = " . $order->__get("order_id"); $result = $this->_db_table->update($data, $where); if (count($result) == 0) { return false; } else { return true; } }