🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Class **Phalcon\Annotations\Adapter\Files**[](# "永久链接至标题") *extends* abstract class [*Phalcon\Annotations\Adapter*](#) *implements*[*Phalcon\Annotations\AdapterInterface*](#) Stores the parsed annotations in diles. This adapter is suitable for production ~~~ <?php $annotations = new \Phalcon\Annotations\Adapter\Files(array( 'annotationsDir' => 'app/cache/annotations/' )); ~~~ ### Methods[](# "永久链接至标题") public **__construct** ([*array* $options]) Phalcon\Annotations\Adapter\Files constructor public [*Phalcon\Annotations\Reflection*](#)**read** (*string* $key) Reads parsed annotations from files public **write** (*unknown* $key, *unknown* $data) Writes parsed annotations to files public **setReader** (*unknown* $reader) inherited from Phalcon\Annotations\Adapter Sets the annotations parser public **getReader** () inherited from Phalcon\Annotations\Adapter Returns the annotation reader public **get** (*string|object* $className) inherited from Phalcon\Annotations\Adapter Parses or retrieves all the annotations found in a class public **getMethods** (*unknown* $className) inherited from Phalcon\Annotations\Adapter Returns the annotations found in all the class' methods public **getMethod** (*unknown* $className, *unknown* $methodName) inherited from Phalcon\Annotations\Adapter Returns the annotations found in a specific method public **getProperties** (*unknown* $className) inherited from Phalcon\Annotations\Adapter Returns the annotations found in all the class' methods public **getProperty** (*unknown* $className, *unknown* $propertyName) inherited from Phalcon\Annotations\Adapter Returns the annotations found in a specific property | - [索引](# "总目录") - [下一页](# "Class Phalcon\Annotations\Adapter\Memory") | - [上一页](# "Class Phalcon\Annotations\Adapter\Apc") | - [API Indice](#) »