Back to the module list

Version of DomFramework

The version file allow you to know the installed version of Domframework. It allow to generate an error if the installed version is too old :

$version = DPT_Version::version();
if ($version === null &&
  version_compare ($version, "2.0") < 0)
  die ("Your DomFramework version is too old : 2.0 minimum\n");

The class definition

Class Domframework\Version

Namespace Domframework

Description

/**
 This is the version of DomFramework.
 It can be used to test if the framework is uptodate for the application
 with :
 require ("domframework/version.php");
 if (!defined ("DOMFRAMEWORK_VERSION") ||
     version_compare (DOMFRAMEWORK_VERSION, "0.6") < 0)
   die ("Your DomFramework version is too old : 0.6 minimum\n");

Properties

No property available

Methods

static public function version ()