Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classement des attributs #90

Open
mvdandrieux opened this issue May 4, 2014 · 6 comments
Open

Classement des attributs #90

mvdandrieux opened this issue May 4, 2014 · 6 comments

Comments

@mvdandrieux
Copy link
Contributor

Il faut trouver un moyen de classer les attributs par grandes familles. Par exemple :

  • date
    • datetime
    • time
    • hour
    • month
@mvdandrieux mvdandrieux added this to the 4.1.0 milestone May 4, 2014
@scux
Copy link

scux commented May 4, 2014

Je suis d'accord avec l'idée de pouvoir les regrouper.
Il faut trouver maintenant la typologie à appliquer.

@mvdandrieux
Copy link
Contributor Author

Un truc dans le genre : Strings & text / Numbers / Choices & relations / Medias

  • strings & text
    • string
    • key
    • password
    • sirtrevor
    • url
  • numbers
    • int
    • id
    • decimal
  • arrays
    • array
  • choices & relations
    • bool
    • rel
    • list
    • item
    • status
    • version
    • owner
  • dates
    • date
    • created
    • updated
  • media

@scux
Copy link

scux commented May 4, 2014

Maintenant, je me demande quelle stratégie adopter :

  • soit on s'arrange pour que ça soit dans le nom de la classe
  • soit on ajoute l'info directement dans les attributs

J'ai une petite préférence pour le premier choix.

@mvdandrieux
Copy link
Contributor Author

nom de la classe un peu contraignant. Pourquoi pas une constante de classe $attrtype ?

@scux
Copy link

scux commented May 15, 2014

Ok pour la constante de classe.

@mvdandrieux
Copy link
Contributor Author

Je te laisse intégrer, livrer et fermer. Tu me donnes une méthode et je ferai l'intégration dans le champs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants