You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
Classes in file reflection/wdfattribute.class.php
class WdfAttribute
Base class for ScavixWDF annotation implementation.
All attributes must inherit this class and can the be noted as attributes to classes and/or methods like this:
@attribute[classname(constructor arguments)]
note that an argument class is named MyFirstAttribute the classname may be MyFirst or MyFirstAttribute
note that the part in the brackets[] will be eval'd, so stay in PHP syntax in there.
note that you may leave out the brackets () if there are not required constructor arguments in your attribute
sample
@attribute[MyFirst('bla')]
@attribute[MyFirstAttribute()]
@attribute[MyFirst]