self::STATUS_INVALID), array('order_id' => $order_id)); return $res; } /** * @param $order_id * @return bool */ static function availableOrderFee($order_id) { $res = pdo_update('cjdc_earnings', array('state' => self::STATUS_AVAILABLE), array('order_id' => $order_id)); return $res; } }