/JavaBridge.inc

Description
Includes
require_once ("${JAVA_BASE}/JavaProxy.inc") (line 62)
Functions
Java (line 175)

Access the java type with the given name.

Access the java type with the given name. Example:

  1.  java("java.lang.System")->getProperties();

  • access: public
void Java (string $name)
  • string $name: The type name
java_autoload (line 152)

Load a set of java libraries and make them available in the current name space.

Load a set of java libraries and make them available in the current name space. Available since php 5.3. Example:

  1.  java_autoload("lucene.jar:log4j.jar");
  2.  
  3.  use org::apache::lucene;
  4.  use org::apache::lucene::index;
  5.  use org::apache::lucene::search;
  6.  use org::apache::lucene::search::IndexSearcher as LuceneSearcher;
  7.  
  8.  $searcher new LuceneSearcher(...);
  9.  $term new index::Term("name""someTerm");
  10.  $phrase new search::PhraseQuery();
  11.  
  12.  $phrase->add($term);
  13.  $hits $searcher->search($phrase);
  14.  ...

  • since: PHP 5.3
  • access: public
void java_autoload ([string $libs = null])
  • string $libs: The libraries separated by a semicolon
java_is_false (line 281)

Checks whether a value is false or not.

Checks whether a value is false or not. Example:

  1.  java_is_false(java("java.lang.System")->getProperty("foo"))

  • return: if the PHP or Java value is false.
  • access: public
true java_is_false (mixed $value)
  • mixed $value: A Java object or a PHP value
java_is_null (line 245)

Checks whether a value is null or not.

Checks whether a value is null or not. Example:

  1.  java_is_null(java("java.lang.System")->getProperty("foo"))

  • return: if $value is the PHP or Java null value.
  • access: public
true java_is_null (mixed $value)
  • mixed $value: A Java object or a PHP value
java_is_true (line 263)

Checks whether a value is true or not.

Checks whether a value is true or not. Example:

  1.  java_is_true(java("java.lang.System")->getProperty("foo"))

  • return: if the PHP or Java value is true.
  • access: public
true java_is_true (mixed $value)
  • mixed $value: A Java object or a PHP value

Documentation generated on Sun, 30 Nov 2008 10:51:46 +0100 by phpDocumentor 1.4.0a2