View: classkit_import

Function:
Description: Import new class method definitions from a file.
Code
1
2
3
4
5
6
7
8
9
10
11
12
function classkit_import (file) {
    // http://jsphp.co/jsphp/fn/view/classkit_import
    // +   original by: Brett Zamir (http://brett-zamir.me)
    // -    depends on: file_get_contents
    // %        note 1: does not return an associative array as in PHP
    // %        note 2: Implement instead with include?
    // %        note 3: CLASSKIT_AGGREGATE_OVERRIDE is mentioned as a flag at http://www.php.net/manual/en/runkit.constants.php but not in classkit docs
    // *     example 1: classkit_import('http://example.com/somefile.js');
    // *     returns 1: undefined

    eval(this.file_get_contents(file));
}
Comment on classkit_import version 104
Tests
Benchmark
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.