* @license PHP License * @package WB * @subpackage base */ /** * Class includer * * Functor to encapsulate include * * @version 0.1.0 * @package WB * @subpackage base */ class WBClass_Loader extends WBStdClass { /** * include folder * @var array */ protected $incDir; /** * class name prefix * @var string */ protected $prefix; /** * loader parameter string * @var string */ protected $param; /** * load named class * * @param string $clazz class to load * @return bool true on success */ public function load($clazz) { return false; } /** * pass list of include folders * * @param array $incDir */ final public function setIncDir($incDir) { $this->incDir = $incDir; } /** * Pass parameter to loader * * @param string $prefix class name prefix * @param string $param any parameter */ final public function setParameter($prefix, $param) { $this->prefix = $prefix; $this->param = $param; } } ?>