steeffeen-zz / FancyManiaLinks

ManiaLink Framework for Object-Based XML Generation
http://steeffeen.github.io/FancyManiaLinks/
GNU General Public License v3.0
6 stars 4 forks source link

Implement scriptaction attribute #21

Closed steeffeen-zz closed 7 years ago

steeffeen-zz commented 7 years ago

Controls receive a new scriptaction attribute

PRGfx commented 7 years ago

Maybe something like

setScriptAction($action, array() $arguments=array())

would be a more comprehensive syntax. I'm not sure how it handles escaping ' in arguments, but this string composition in general would be a nice thing to be handled by the framework imo.

(Regarding getScriptAction it would probably be better to use some data object instead.)

steeffeen-zz commented 7 years ago

@PRGfx This is a good suggestion! Thanks! I'm thinking about additional get/setScriptActionParameters methods instead of a data object in order to have a comprehensible API.