Show
Ignore:
Timestamp:
03/17/08 13:26:34 (10 months ago)
Author:
romanb
Message:

refactorings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Doctrine.php

    r3931 r4002  
    5656     * VERSION 
    5757     */ 
    58     const VERSION                   = '1.0.0'; 
     58    const VERSION                   = '2.0.0'; 
    5959 
    6060    /** 
     
    172172     */ 
    173173    const ATTR_LISTENER                 = 100; 
    174     const ATTR_QUOTE_IDENTIFIER         = 101; 
    175     const ATTR_FIELD_CASE               = 102; 
    176     const ATTR_IDXNAME_FORMAT           = 103; 
    177     const ATTR_SEQNAME_FORMAT           = 104; 
    178     const ATTR_SEQCOL_NAME              = 105; 
    179     const ATTR_CMPNAME_FORMAT           = 118; 
    180     const ATTR_DBNAME_FORMAT            = 117; 
    181     const ATTR_TBLCLASS_FORMAT          = 119; 
    182     const ATTR_TBLNAME_FORMAT           = 120; 
    183     const ATTR_EXPORT                   = 140; 
    184     const ATTR_DECIMAL_PLACES           = 141; 
    185     const ATTR_PORTABILITY              = 106; 
    186     const ATTR_VALIDATE                 = 107; 
    187     const ATTR_COLL_KEY                 = 108; 
    188     const ATTR_QUERY_LIMIT              = 109; 
    189     const ATTR_DEFAULT_TABLE_TYPE       = 112; 
    190     const ATTR_DEF_TEXT_LENGTH          = 113; 
    191     const ATTR_DEF_VARCHAR_LENGTH       = 114; 
    192     const ATTR_DEF_TABLESPACE           = 115; 
    193     const ATTR_EMULATE_DATABASE         = 116; 
    194     const ATTR_USE_NATIVE_ENUM          = 117; 
    195     const ATTR_DEFAULT_SEQUENCE         = 133; 
    196     const ATTR_FETCHMODE                = 118; 
    197     const ATTR_NAME_PREFIX              = 121; 
    198     const ATTR_CREATE_TABLES            = 122; 
    199     const ATTR_COLL_LIMIT               = 123; 
    200     const ATTR_CACHE                    = 150; 
    201     const ATTR_RESULT_CACHE             = 150; 
    202     const ATTR_CACHE_LIFESPAN           = 151; 
    203     const ATTR_RESULT_CACHE_LIFESPAN    = 151; 
    204     const ATTR_LOAD_REFERENCES          = 153; 
     174    const ATTR_QUOTE_IDENTIFIER         = 101; // manager/session attribute 
     175    const ATTR_FIELD_CASE               = 102; // manager/session attribute 
     176    const ATTR_IDXNAME_FORMAT           = 103; // manager/session attribute 
     177    const ATTR_SEQNAME_FORMAT           = 104; // manager/session attribute 
     178    const ATTR_SEQCOL_NAME              = 105; // class attribute 
     179    const ATTR_CMPNAME_FORMAT           = 118; // ?? 
     180    const ATTR_DBNAME_FORMAT            = 117; // manager/session attribute 
     181    const ATTR_TBLCLASS_FORMAT          = 119; // manager/session attribute 
     182    const ATTR_TBLNAME_FORMAT           = 120; // manager/session attribute 
     183    const ATTR_EXPORT                   = 140; // manager/session attribute 
     184    const ATTR_DECIMAL_PLACES           = 141; // manager/session attribute 
     185    const ATTR_PORTABILITY              = 106; // manager/session attribute 
     186    const ATTR_VALIDATE                 = 107; // manager/session attribute 
     187    const ATTR_COLL_KEY                 = 108; // class attribute 
     188    const ATTR_QUERY_LIMIT              = 109; // manager/session attribute 
     189    const ATTR_DEFAULT_TABLE_TYPE       = 112; // manager/session attribute 
     190    const ATTR_DEF_TEXT_LENGTH          = 113; // manager/session attribute 
     191    const ATTR_DEF_VARCHAR_LENGTH       = 114; // manager/session attribute 
     192    const ATTR_DEF_TABLESPACE           = 115; // manager/session attribute 
     193    const ATTR_EMULATE_DATABASE         = 116; // manager/session attribute 
     194    const ATTR_USE_NATIVE_ENUM          = 117; // manager/session attribute 
     195    const ATTR_DEFAULT_SEQUENCE         = 133; // ?? 
     196    const ATTR_FETCHMODE                = 118; // deprecated 
     197    const ATTR_NAME_PREFIX              = 121; // ?? 
     198    const ATTR_CREATE_TABLES            = 122; // manager/session attribute 
     199    const ATTR_COLL_LIMIT               = 123; // manager/session attribute 
     200    const ATTR_CACHE                    = 150; // deprecated 
     201    const ATTR_RESULT_CACHE             = 150; // manager/session attribute 
     202    const ATTR_CACHE_LIFESPAN           = 151; // deprecated 
     203    const ATTR_RESULT_CACHE_LIFESPAN    = 151; // manager/session attribute 
     204    const ATTR_LOAD_REFERENCES          = 153; // class attribute 
    205205    const ATTR_RECORD_LISTENER          = 154; 
    206     const ATTR_THROW_EXCEPTIONS         = 155; 
    207     const ATTR_DEFAULT_PARAM_NAMESPACE  = 156; 
    208     const ATTR_QUERY_CACHE              = 157; 
    209     const ATTR_QUERY_CACHE_LIFESPAN     = 158; 
    210     const ATTR_MODEL_LOADING            = 161; 
    211     const ATTR_LOCK                     = 162; 
    212     const ATTR_HYDRATE                  = 163; 
    213     const ATTR_IDENTIFIER               = 164; 
     206    const ATTR_THROW_EXCEPTIONS         = 155; // manager/session attribute 
     207    const ATTR_DEFAULT_PARAM_NAMESPACE  = 156; // ?? 
     208    const ATTR_QUERY_CACHE              = 157; // manager/session attribute 
     209    const ATTR_QUERY_CACHE_LIFESPAN     = 158; // manager/session attribute 
     210    const ATTR_MODEL_LOADING            = 161; // manager/session attribute 
     211    const ATTR_LOCK                     = 162; // ?? 
     212    const ATTR_HYDRATE                  = 163; // ?? 
     213    const ATTR_IDENTIFIER               = 164; // ?? 
     214    const ATTR_METADATA_CACHE           = 165; // manager/session attribute 
     215    const ATTR_METADATA_CACHE_LIFESPAN  = 166; // manager/session attribute 
    214216 
    215217    /** 
     
    282284     * 
    283285     * @see self::ATTR_FETCHMODE 
     286     * @deprecated??? 
    284287     */ 
    285288    const FETCHMODE_VHOLDER         = 1; 
     
    294297     * 
    295298     * @see self::ATTR_FETCHMODE 
     299     * @deprecated??? 
    296300     */ 
    297301    const FETCHMODE_RECORD          = 2; 
     
    301305     * 
    302306     * @see self::ATTR_FETCHMODE 
     307     * @deprecated??? 
    303308     */ 
    304309    const FETCHMODE_ARRAY           = 3; 
     
    494499     * 
    495500     * @see self::ATTR_VALIDATE 
     501     * Not used? Purpose? 
    496502     */ 
    497503    const VALIDATE_CONSTRAINTS      = 4; 
     
    558564     * @see self::ATTR_MODEL_LOADING 
    559565     */ 
    560     const MODEL_LOADING_CONSERVATIVE= 2; 
     566    const MODEL_LOADING_CONSERVATIVE = 2; 
    561567     
    562568    /** 
     
    584590     */ 
    585591    const INHERITANCETYPE_TABLE_PER_CLASS = 3; 
    586      
     592 
    587593 
    588594    /** 
     
    764770            // - don't have a setTableDefinition method 
    765771            if (!$class->isAbstract() && 
    766                 $class->isSubClassOf('Doctrine_Record') && 
    767                 $class->hasMethod('setTableDefinition')) { 
     772                $class->isSubClassOf('Doctrine_Record')) { 
    768773 
    769774                return true;