Question about :: in Tutorial
Posted: Tue Dec 17, 2002 8:03 am
I was reading Jason's tutorial located here: http://www.phpcomplete.com/tutorials.ph ... adTutorial
Some of the code in the tutorial is as follows:
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.
Anyone familiar with this?
Some of the code in the tutorial is as follows:
Code: Select all
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);
}
}Anyone familiar with this?