Last modified: 2013-11-14 14:32:24 UTC
Via Wikitech-l: On Sunday, January 13, 2013 at 4:36 AM, Daniel Kinzler wrote: > On 13.01.2013 01:35, Ori Livneh wrote: > > * The way validation is handled is a bit mysterious. Content defines > > an isValid interface and (if I recall correctly) a return value of > > false would prevent the content from getting saved. But in such > > cases you want a helpful error. > You are right, it would be better to have a validate() method that > returns a Status object. isValid() could then just call that and return > $status->isOK(), for compatibility. If you like, file a bug for that - > or just write it :)