~desarrollokumbia/kumbia/ActiveRecord

« back to all changes in this revision

Viewing changes to active_record2/kumbia_model.php

  • Committer: Emilio Silveira
  • Date: 2010-01-10 04:49:16 UTC
  • Revision ID: emilio.rst@gmail.com-20100110044916-qvymkocllio8mv43
Aun con la metadata

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 */
22
22
class KumbiaModel
23
23
{
 
24
    /**
 
25
     * Instancias de metadata de modelos
 
26
     *
 
27
     * @var array
 
28
     **/
 
29
    private static $_metadata = array();
 
30
    
 
31
    /**
 
32
     * Obtiene la metatada de un modelo
 
33
     *
 
34
     * @return Metadata
 
35
     **/
 
36
    public static function metatata($model)
 
37
    {
 
38
        if(!isset(self::$_metadata[$model])) {
 
39
            self::$_metadata[$model] = new Metadata();
 
40
        }
 
41
        
 
42
        return self::$_metadata[$model];
 
43
    }
24
44
}
 
 
b'\\ No newline at end of file'