模块

abstract Bootdoc_Missing

This class, or a class parent, could not be found or loaded. This could be caused by a missing module or other dependancy. The documentation for class may not be complete!

Set Bootdoc_Missing::create_class as an autoloading to prevent missing classes from crashing the api browser. Classes that are missing a parent will extend this class, and get a warning in the API browser.

package
BootPHP/Userguide
category
Undocumented
author
Tinsh

该类在 MODPATH/userguide/classes/bootdoc/missing.php 第 12 行声明。

常量

属性

方法

public static create_class( string $class ) (在 Bootdoc_Missing 中定义)

Creates classes when they are otherwise not found.

Bootdoc::create_class('ThisClassDoesNotExist');

All classes created will extend Bootdoc_Missing.

参数

  • string $class required - Class name

Tags

  • Since - 3.0.7

返回值

  • boolean

源代码

public static function create_class($class)
{
	if ( !class_exists($class) )
	{
		// Create a new missing class
		eval("class {$class} extends Bootdoc_Missing {}");
	}
	return true;
}