var Core = {}; class _core { /** * @param {string} property * @return {*} */ _get(property) { return this.hasOwnProperty(property) ? this[property] : null; } /** * @param {string} property * @param {*} value */ _set(property, value) { this[property] = value; } /** * Get API URI. * @param {string} extension Add this to end of URI */ getURI(extension) { extension = extension || ''; let dir = ''; let parts = this.constructor.getClassName().split('.'); for (let i = 0; i < parts.length; i++) { dir = `${dir}/${_.kebabCase(parts[i])}`; } return `/api/${Page.Meta.api_version}/${dir}${extension}/index.php`; } }