|
适配器是一种特殊的库,它有一个父类和任意数量的子类。子类可以访问其父类元素,但不能访问其兄弟类的元素。Drivers provide an elegant syntax in your [url=]controllers[/url] for libraries that benefit from or require being broken down into discrete classes.
适配器的源文件存放在system/libraries 目录下, in their own folder which is identically named to the parent library class. Also inside that folder is a subfolder named drivers, which contains all of the possible child class files.
The child classes, the drivers themselves, can then be called directly through the parent class, without initializing them
哪位能帮我翻译一下上面的三句话,要通俗流畅,容易明白,多谢。另外,适配器的作用是什么?能否简单说明一下?
|
|