Changeset 287 for trunk/trax/vendor/trax

Show
Ignore:
Timestamp:
04/09/07 01:26:43 (5 years ago)
Author:
john
Message:

updating makepkg to new format for package2.xml

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/trax.php

    r268 r287  
    3434 */ 
    3535class Trax { 
     36 
     37    const 
     38        MAJOR = 0, 
     39        MINOR = 14, 
     40        TINY = 0; 
    3641     
    3742    public static  
     
    5459        $current_controller_name = null, 
    5560        $current_action_name = null, 
    56         $current_controller_object = null; 
     61        $current_controller_object = null, 
     62        $version = null; 
    5763 
    5864    function initialize() { 
     65 
     66        self::$version = self::version(); 
    5967 
    6068        if(substr(PHP_OS, 0, 3) == 'WIN') { 
     
    126134        } 
    127135    } 
     136 
     137    function version() { 
     138        return implode('.', array(self::MAJOR, self::MINOR, self::TINY));     
     139    } 
    128140} 
    129141