original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Check if the javascript code generated by Jaxon can be exported to an external file
  
  @return boolean
docstring_tokens: Check if the javascript code generated by Jaxon can be exported to an external file