neptuo / is4wfw

PHP based CMS with multi domain support, virtual file system, library for team-sport fixtures and statistics, and many other features.
http://is4wfw.neptuo.com
Apache License 2.0
1 stars 0 forks source link

Recognition of an unused attribute #448

Closed maraf closed 2 years ago

maraf commented 2 years ago

Sometimes we need to recognize if attribute is used or not. Until now, such attribute typically had a weird default value and we count on that it will be never used. Minor drawback is that it was shown in the docs.

Here I propose to system wide default attribute value and allow to mark an attribute to default to this value. It must be a constant (probably in PhpRuntime class), so it can be used in php source code as method parameter default value.

<attribute>
    ...
    <default as="unused" />
    ...
</attribute>
maraf commented 2 years ago

XSD deployed.