/**
  * Decide what amount of the version we should output
  *
  * @return String
  */
 public function version()
 {
     $version = '';
     switch (APPLICATION_ENV) {
         case 'development':
             $version = FFR_Version::getVersion('build', true) . FFR_Version::getBuildStatus();
             break;
         case 'production':
             $version = FFR_Version::getVersion('minor', true);
             break;
     }
     return $version;
 }
 /**
  * Get the build status
  *
  * The build status comes from the third digit in the version.
  * http://en.wikipedia.org/wiki/Software_versioning
  *
  * @param none
  * @return string
  */
 public static function getBuildStatus()
 {
     switch (FFR_Version::getVersion('build')) {
         case '0':
             $status = 'alpha';
             break;
         case '1':
             $status = 'beta';
             break;
         case '2':
             $status = 'RC';
             break;
         default:
             $status = 'final';
             break;
     }
     return $status;
 }
 public static function getVersion($part = null, $fromBeginning = false, $version = null)
 {
     return parent::getVersion($part, $fromBeginning, self::VERSION);
 }