File tree Expand file tree Collapse file tree
user_guide_src/source/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -740,18 +740,17 @@ Defining Callbacks
740740
741741You specify the callbacks by first creating a new class method in your model to use.
742742
743- This class method will always
744- receive a ``$data `` array as its only parameter.
745-
746- The exact contents of the ``$data `` array will vary between events, but
747- will always contain a key named ``data `` that contains the primary data passed to the original method.
748- In the case
749- of the **insert*() ** or **update*() ** methods, that will be the key/value pairs that are being inserted into the database.
750- The
751- main ``$data `` array will also contain the other values passed to the method, and be detailed in `Event Parameters `_.
752-
753- The callback method
754- must return the original ``$data `` array so other callbacks have the full information.
743+ This class method will always receive a ``$data `` array as its only parameter.
744+
745+ The exact contents of the ``$data `` array will vary between events, but will always
746+ contain a key named ``data `` that contains the primary data passed to the original
747+ method. In the case of the **insert*() ** or **update*() ** methods, that will be
748+ the key/value pairs that are being inserted into the database. The main ``$data ``
749+ array will also contain the other values passed to the method, and be detailed
750+ in `Event Parameters `_.
751+
752+ The callback method must return the original ``$data `` array so other callbacks
753+ have the full information.
755754
756755.. literalinclude :: model/050.php
757756
You can’t perform that action at this time.
0 commit comments