new $DB->get_existing_record() DML method

Re: new $DB->get_existing_record() DML method

by Petr Skoda -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers
I have added new $strictness parameter to get_record() and get_filed() family of methods, adding new methods with different prefix would require at least 6 new methods - thus making the API significantly larger.

The code is in cvs MDL-19689, unittests included. It is not yet used anywhere, so there is still possibility to revert it or change implementation. Any more thought and ideas are welcome.

Thanks everybody!

PS: please have a look at the code/ in-line docs and test if possible wink