Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
jvx:server:lco:actions_in_objects [2020/06/15 10:53] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
jvx:server:lco:actions_in_objects [2020/06/26 12:46] cduncan |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~Title: Actions in Server Objects~~ | ~~Title: Actions in Server Objects~~ | ||
- | Every [[jvx:server:lco:actions|server-side action]] should be defined in a [[jvx:server:lco:lifecycle|life-cycle object]] (= LCO). Sometimes it's better to group functionality in helper objects. | + | Every [[jvx:server:lco:actions|server-side action]] should be defined in a [[jvx:server:lco:lifecycle|life cycle object]] (LCO). Sometimes, it's better to group functionality in helper objects. |
It's very easy to encapsulate functionality in objects. Just create an object and add public methods: | It's very easy to encapsulate functionality in objects. Just create an object and add public methods: |