|
93 | 93 | {% endif %}{# class.tags.see || class.tags.link #} |
94 | 94 |
|
95 | 95 | {% set methodsList = [] %} |
96 | | -#### <span style="display: none;">{{ class }}</span> Methods: |
| 96 | +### <span style="display: none;">{{ class }}</span> Methods |
97 | 97 | {# Lista de métodos públicos y protegidos #} |
98 | 98 | {% for method in class.methods|sort_asc %} |
99 | 99 | {% set methodsList = methodsList|merge([method.name]) %} |
|
104 | 104 | > This class has not methods. |
105 | 105 | {% endfor %} |
106 | 106 |
|
107 | | -#### <span style="display: none;">{{ class }}</span> Inherited methods: |
| 107 | +#### <span style="display: none;">{{ class }}</span> Inherited methods |
108 | 108 | {# Lista de métodos públicos y protegidos #} |
109 | 109 | {% for method in class.inheritedMethods if method.name not in methodsList -%} |
110 | 110 | {%- if method.parent in project.indexes.classes %} |
|
125 | 125 | {% else %} |
126 | 126 | > This class has not inherited methods. |
127 | 127 | {% endfor %} |
| 128 | + |
| 129 | +{% set propertiesList = [] %} |
| 130 | +### <span style="display: none;">{{ class }}</span> Properties |
| 131 | +{# Lista de propiedades públicas y protegidas #} |
| 132 | +{% for property in class.properties|merge(class.magicProperties|default([]))|sort_asc if property.visibility != 'private' %} |
| 133 | +{% set propertiesList = propertiesList|merge([property.name]) %} |
| 134 | +{% include 'property.md.twig' %} |
| 135 | +{% else %} |
| 136 | +> This class has not properties. |
| 137 | +{% endfor %} |
| 138 | + |
| 139 | +#### <span style="display: none;">{{ class }}</span> Inherited properties |
| 140 | +{# Lista de métodos públicos y protegidos #} |
| 141 | +{% for property in class.inheritedProperties if property.name not in propertiesList and property.visibility != 'private'-%} |
| 142 | + {%- if property.parent in project.indexes.classes %} |
| 143 | + {%- set parent_location = 'classes' %} |
| 144 | + {%- elseif property.parent in project.indexes.interfaces %} |
| 145 | + {%- set parent_location = 'interfaces' %} |
| 146 | + {%- else %} |
| 147 | + {%- set parent_location = 'traits' %} |
| 148 | + {%- endif %} |
| 149 | + |
| 150 | +- [{{ property.parent.namespace|trim('\\') -}}\\<span style="font-weight: bold;">{{ property.parent.name }}</span>](/api/{{ parent_location }}.html# |
| 151 | + {{- property.parent|trim('\\')|lower|replace('\\', '-') -}} |
| 152 | + ):: |
| 153 | + {{- include('property-anchor-link.md.twig', { text: '$' ~ property.name }) -}} |
| 154 | + {{ include('badges.md.twig', { elem: property }) }} |
| 155 | +{% else %} |
| 156 | +> This class has not inherited properties. |
| 157 | +{% endfor %} |
0 commit comments