Re: [SPIP Zone] SPIP 3.3-beta

nicod_ <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Le 09/12/2019 à 17:07, Charles Razack a écrit :
> Ainsi l'utilisation "de base" serait plus simple et identique à 
> objet_modifier et objet_inserer.
> 
> C'est à dire faire ça :
> 
> objet_lire('patate', 10, array('titre', 'texte'));
> 
> Au lieu de faire ça :
> 
> objet_lire('patate', 'id_patate', 10, array('titre', 'texte'));

+1

Et pourquoi devoir préciser explicitement la liste des champs qu'on veut 
obtenir ?
Ça peut être vite contraignant.

Pourquoi pas objet_lire('patate', 10) sans précision qui retournerait 
juste tous les champs de l'objet ?

-- 
nicod_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.