Missing Documentation: Model Service - $_type_classes
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- php
- Bereich
- documentation
Rechercherichtung
Read the Model Service documentation at services/model/building-your-own.html, especially the Typed Columns and Composite Types sections. Check how $_type_classes and the ChannelPreferences example relate to custom composite types, then document the property and explain its use. Done means the guide clearly describes how custom composite types are configured.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Suggested Change
Add documentation to describe $_type_classes property for the Model Service. The use case I have found which demonstrates this can be found in the Site Model
Note: While writing this issue, I noticed that this model now does not actually use a custom
$_type_classesfor any of its properties:ExpressionEngine\Service\Model\Column\CustomType
I am assuming that this change happened between version 5 and 6.
Reasoning
The documentation does describe Typed Columns but it does not describe that Composite Types can be custom.
Example of a custom composite type: ChannelPreferences
Additional context
I assume that the Site Model no longer utilizes these custom $_type_classes because information stored in these variables is only accessible once the model has been loaded, therefore these property values cannot be used when filtering for models. Is this correct?
Also, I have not looked deeper into this, but the Site Model was the only model I was familiar with that used this type of Variable Column. My next question is whether or not the uses of $_type_classes are being phased out in a later version?
- Vorherrschende Sprache
- CSS
- Sterne
- 22
- Forks
- 79
- Ø Merge
- 2 T. 1 Std.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ExpressionEngine/ExpressionEngine-User-Guide
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
-
registration form docsOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 55/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 46/100
Alle Issues in ExpressionEngine/ExpressionEngine-User-Guide
Ähnliche Issues
-
area/docs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 83/100
Clodmony/starship-coop#72 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
nearform/ag-grid-url-sync#315 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
DigitecGalaxus/next-yak#727 · 1 Reaktion ·
-
documentation enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue priority:low type:docs
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 95/100
crazy-goat/rabbit-stream#969 ·
Maintainer antworten meist innerhalb von 1 Tag