Mass update on the PHP API to simplify the document and node retrieval