Source for file Autoload.php
Documentation is available at Autoload.php
* Note: shell wrapper has to create the __autoload() function when
* isAutoloadEnabled() is true
* handles the options to enable the internal autoload support
* autoload can't be disabled
class PHP_Shell_Extensions_Autoload implements PHP_Shell_Extension {
* does the use want to use the internal autoload ?
protected $autoload = false;
public function register () {
$opt = PHP_Shell_Options ::getInstance ();
$opt->registerOption ("autoload", $this, "optSetAutoload");
$opt->registerOptionAlias ("al", "autoload");
* - the $value is ignored and doesn't have to be set
* - if __autoload() is defined, the set fails
public function optSetAutoload ($key, $value) {
print ('autload is already enabled');
print ('can\'t enabled autoload as a external __autoload() function is already defined');
* is the autoload-flag set ?
* @return bool true if __autoload() should be set by the external wrapper
public function isAutoloadEnabled () {
Documentation generated on Mon, 11 Mar 2019 14:40:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|