UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

45 lines (38 loc) 1.35 kB
--- layout: page title: "JavaScript get_required_files function" comments: true sharing: true footer: true alias: - /functions/view/get_required_files:594 - /functions/view/get_required_files - /functions/view/594 - /functions/get_required_files:594 - /functions/594 --- <!-- Generated by Rakefile:build --> A JavaScript equivalent of PHP's get_required_files {% codeblock info/get_required_files.js lang:js https://raw.github.com/kvz/phpjs/master/functions/info/get_required_files.js raw on github %} function get_required_files () { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // - depends on: get_included_files // * example 1: get_required_files(); // * returns 1: ['http://kevin.vanzonneveld.net/pj_tester.php'] return this.get_included_files(); } {% endcodeblock %} - [view on github](https://github.com/kvz/phpjs/blob/master/functions/info/get_required_files.js) - [edit on github](https://github.com/kvz/phpjs/edit/master/functions/info/get_required_files.js) ### Example 1 This code {% codeblock lang:js example %} get_required_files(); {% endcodeblock %} Should return {% codeblock lang:js returns %} ['http://kevin.vanzonneveld.net/pj_tester.php'] {% endcodeblock %} ### Other PHP functions in the info extension {% render_partial _includes/custom/info.html %}