@adoratorio/demetra
Version:
Internal use library for wordpress API request
21 lines • 841 B
JavaScript
import DemetraRequest from "./DemetraRequest";
import { WP_MODES } from "../declarations";
class DemetraRequestPage extends DemetraRequest {
type;
i18n;
siblings;
wpCache;
localCache;
constructor(id, options, lang, site, version) {
super(WP_MODES.PAGE, id, lang, site, version);
if (typeof options === 'undefined')
options = {};
this.type = options.type || 'page';
this.i18n = options.i18n || true;
this.siblings = options.siblings || { fields: [], prev: false, next: false, loop: false };
this.wpCache = typeof options.wpCache === 'undefined' ? true : options.wpCache;
this.localCache = typeof options.localCache === 'undefined' ? false : options.localCache;
}
}
export default DemetraRequestPage;
//# sourceMappingURL=DemetraRequestPage.js.map