1 | <?php |
||
28 | class CFPHPCache { |
||
29 | /** |
||
30 | * Configuracion |
||
31 | * |
||
32 | * @access public |
||
33 | */ |
||
34 | public static $configuracion = array( |
||
35 | 'cache_dir' => 'cache', |
||
36 | // por defecto el tiempo expira en *minutos* |
||
37 | 'expires' => 180, |
||
38 | ); |
||
39 | |||
40 | public static function configurar($clave, $valor = null) { |
||
49 | /** |
||
50 | * obtiene la ruta del archivo asociado a la clave. |
||
51 | * |
||
52 | * @access public |
||
53 | * @param string $clave |
||
54 | * @return string el nombre del archivo php |
||
55 | */ |
||
56 | public static function obtenerRuta($clave) { |
||
59 | /** |
||
60 | * obtiene los datos asociados a la clave |
||
61 | * |
||
62 | * @access public |
||
63 | * @param string $clave |
||
64 | */ |
||
65 | public static function obtener($clave, $raw = false, $tiempo_personalizado = null) { |
||
72 | /** |
||
73 | * Envia el contenido dentro de la cache |
||
74 | * |
||
75 | * @access public |
||
76 | * @param string $clave |
||
77 | * @param mixed $content the the content you want to store |
||
|
|||
78 | * @param bool $raw whether if you want to store raw data or not. If it is true, $content *must* be a string |
||
79 | * It can be useful for static html caching. |
||
80 | * @return bool whether if the operation was successful or not |
||
81 | */ |
||
82 | public static function enviar($clave, $contenido, $raw = false) { |
||
85 | /** |
||
86 | * Delete data from cache |
||
87 | * |
||
88 | * @access public |
||
89 | * @param string $clave |
||
90 | * @return bool true if the data was removed successfully |
||
91 | */ |
||
92 | public static function eliminar($clave) { |
||
98 | /** |
||
99 | * limpia la cache |
||
100 | * |
||
101 | * @access public |
||
102 | * @return bool always true |
||
103 | */ |
||
104 | public static function limpiar() { |
||
111 | /** |
||
112 | * Check if a file has expired or not. |
||
113 | * |
||
114 | * @access public |
||
115 | * @param $archivo the rout to the file |
||
116 | * @param int $fecha the number of minutes it was set to expire |
||
117 | * @return bool if the file has expired or not |
||
118 | */ |
||
119 | public static function file_expired($archivo, $fecha = null) { |
||
125 | } |
||
126 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.