-
Notifications
You must be signed in to change notification settings - Fork 34
classes_reflection_wdfattribute.class
Daniel Spors edited this page Dec 19, 2023
·
2 revisions
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]
Some more samples can be found at WdfReflector::GetClassAttributes
Subclasses: PublicAttribute, RequestParamAttribute, ResourceAttribute