public function canExportJavascript()
    {
        // Check config options
        // - The js.app.extern option must be set to true
        // - The js.app.uri and js.app.dir options must be set to non null values
        if(!$this->getOption('js.app.extern') ||
            !$this->getOption('js.app.uri') ||
            !$this->getOption('js.app.dir'))
        {
            return false;
        }
        // Check dir access
        // - The js.app.dir must be writable
        $sJsAppDir = $this->getOption('js.app.dir');
        if(!is_dir($sJsAppDir) || !is_writable($sJsAppDir))
        {
            return false;
        }
        return true;
    }
public function canExportJavascript()
    {
        // Check config options
        // - The js.app.extern option must be set to true
        // - The js.app.uri and js.app.dir options must be set to non null values
        if(!$this->getOption('js.app.extern') ||
            !$this->getOption('js.app.uri') ||
            !$this->getOption('js.app.dir'))
        {
            return false;
        }
        // Check dir access
        // - The js.app.dir must be writable
        $sJsAppDir = $this->getOption('js.app.dir');
        if(!is_dir($sJsAppDir) || !is_writable($sJsAppDir))
        {
            return false;
        }
        return true;
    }
public function canExportJavascript ( ) { // Check config options // - The js.app.extern option must be set to true // - The js.app.uri and js.app.dir options must be set to non null values if ( ! $ this -> getOption ( 'js.app.extern' ) || ! $ this -> getOption ( 'js.app.uri' ) || ! $ this -> getOption ( 'js.app.dir' ) ) { return false ; } // Check dir access // - The js.app.dir must be writable $ sJsAppDir = $ this -> getOption ( 'js.app.dir' ) ; if ( ! is_dir ( $ sJsAppDir ) || ! is_writable ( $ sJsAppDir ) ) { return false ; } return true ; }
Check if the javascript code generated by Jaxon can be exported to an external file

@return boolean
Check if the javascript code generated by Jaxon can be exported to an external file