Documentation

內容目录

上一个主题

< Abstract class Phalcon\Annotations\Adapter

下一个主题

Class Phalcon\Annotations\Adapter\Files >

本页

Class Phalcon\Annotations\Adapter\Apc

extends abstract class Phalcon\Annotations\Adapter

implements Phalcon\Annotations\AdapterInterface

Source on GitHub

Stores the parsed annotations in APC. This adapter is suitable for production

<?php

 $annotations = new \Phalcon\Annotations\Adapter\Apc();

Methods

public __construct ([array $options])

Phalcon\Annotations\Adapter\Apc constructor

public Phalcon\Annotations\Reflection read (string $key)

Reads parsed annotations from APC

public write (unknown $key, Phalcon\Annotations\Reflection $data)

Writes parsed annotations to APC

public setReader (Phalcon\Annotations\ReaderInterface $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

Follow along: