PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Kernel::includeObject('XML/XMLReader');
XMLReader::readFileInto('file.xml', $xmlfile);
class Kernel
{
/**
* Includes an object file for use in an application.
*/
function includeObject ( $namespace )
{
require_once dirname(__FILE__).'/'.$namespace.'.php';
return $namespace::_autoInclude();
}
/**
* Takes 2 arguments, on the file name, the
* other is the variable that will
* contain the object. PassedByRef.
*/
function includeObjectInto ( $namespace, &$object )
{
require_once dirname(__FILE__).'/'.$namespace.'.php';
return $namespace::_autoIncludeInto($object);
}
}
What is puzzling me is the "::". What does that do? Is it just a naming convention. I tried "::" in php.net and got no results.