Once this flag has been set, the module leverages a hook method.
一旦设置了这个标志,模块利用一个hook方法。
At the end of the hook method, I invoke the original method call on the decorated object using my new argument list.
在钩子方法的结束部分,我使用新参数列表对修饰对象调用原始方法。
A field's hook method is named _set_ [field name] , and it gets called whenever a value is about to be set for that field, whether as part of a create operation or an update operation.
字段的钩子方法命名为_ set _ [field name],不管是作为create操作还是update操作的一部分,每当要为该字段设置一个值时,都会调用该方法。
应用推荐