server/src/app/Libraries/Utils.php
changeset 496 a53762d61c06
parent 386 c731ab9b934d
equal deleted inserted replaced
495:c71923e6fa2f 496:a53762d61c06
     9 /**
     9 /**
    10  * Utilities functions
    10  * Utilities functions
    11  */
    11  */
    12 class Utils {
    12 class Utils {
    13 
    13 
       
    14     const SUBJECT_TYPE_BNF   = 'bnf';
       
    15     const SUBJECT_TYPE_LEXVO = 'lxv';
       
    16     const SUBJECT_TYPE_OLAC  = 'olac';
       
    17     const SUBJECT_TYPE_TXT   = 'txt';
    14 
    18 
    15     /**
    19     /**
    16      * convert DateIntervals to milliseconds
    20      * convert DateIntervals to milliseconds
    17      * Months and year calculated by approximation based on average number
    21      * Months and year calculated by approximation based on average number
    18      * of days over 4 years (365*4+1)
    22      * of days over 4 years (365*4+1)