100], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'order_no' => 'Order No', 'settlement_type' => 'Settlement Type', 'status' => 'Status', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public static function setData($params) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new \Exception($model->getErrorMessage()); return true; } catch (\Exception $e) { self::$static_error = $e->getMessage(); return false; } } }