Access the java type with the given name.
Access the java type with the given name.
Example:
java("java.lang.System")->getProperties();
void
Java
(string $name)
-
string
$name: The type name
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:
use org::apache::lucene;
use org::apache::lucene::index;
use org::apache::lucene::search;
use org::apache::lucene::search::IndexSearcher as LuceneSearcher;
$searcher = new LuceneSearcher(...);
$term = new index::Term("name", "someTerm");
$phrase = new search::PhraseQuery();
$phrase->add($term);
$hits = $searcher->search($phrase);
...
void
java_autoload
([string $libs = null])
-
string
$libs: The libraries separated by a semicolon
Checks whether a value is false or not.
Checks whether a value is false or not.
Example:
true
java_is_false
(mixed $value)
-
mixed
$value: A Java object or a PHP value
Checks whether a value is null or not.
Checks whether a value is null or not.
Example:
true
java_is_null
(mixed $value)
-
mixed
$value: A Java object or a PHP value
Checks whether a value is true or not.
Checks whether a value is true or not.
Example:
true
java_is_true
(mixed $value)
-
mixed
$value: A Java object or a PHP value