Class EVSProject

Description

Implements the management of different EVSVersions.

Located in /code/framework/EVS/EVSProject.php (line 39)


	
			
Variable Summary
Method Summary
EVSProject EVSProject (mixed &$evs, mixed $projectName)
void &createVersion (mixed $version)
mixed getLatestPatchlevelVersion (mixed $major, mixed $minor)
mixed getVersion ([mixed $version = false])
void _loadVersions ()
int _versionSortCompare (mixed $o1, mixed $o2, EVSVersion $o1;, EVSVersion $o2;)
Variables
EVS $evs = null (line 45)

An instance of EVS. Gets set inside the costructor method.

  • see: EVSProject::EVSProject
EVSVersion $latestCurrentDevelopmentVersion (line 87)

The latest current development version. Is set inside the constructor method.

EVSVersion $latestCurrentStableVersion (line 92)

The latest current stable version. Is set inside the constructor method.

EVSVersion $latestCurrentVersion (line 97)

The latest current version. Is set inside the constructor method.

EVSVersion $latestDevelopmentRelease (line 77)

The latest development release. Is set in the constructor.

EVSVersion $latestStableRelease (line 82)

The latest stable release. Is set inside the constructor method.

String $name (line 72)

The project name. Is set inside the constructor method.

String $projectDirectory = '' (line 51)

The absolute path to the directory where the project is stored. Gets set inside the costructor method.

  • see: EVSProject::EVSProject
Array $releases = array() (line 67)

An array containing all releases of the project as instances of EVSVersion (sorted by release number).

boolean $versioning = true (line 57)

If this project supports versioning project or not. Gets set inside the costructor method.

  • see: EVSProject::EVSProject
Array $versions = array() (line 62)

An array containing all versions of the project as instances of EVSVersion (sorted by version number).

Methods
Constructor EVSProject (line 105)

Construtor method.

Loads all versions of this project and sets the properties of this EVSProject instance.

EVSProject EVSProject (mixed &$evs, mixed $projectName)
createVersion (line 342)

Create a directory for the new version and returns a new EVSVersion for it.

This method is only called right after creating a project. If the value passed as argument evaluates to true, a 'real' version will be created. If it evaluates to false a version will only be faked. This is needed when the project was created with versionining support disabled. In this case no subdirectory will get created and $this->versions holds only one instance of EVSVersion.

void &createVersion (mixed $version)
  • mixed $version: The version number to create or the boolean value false.
getLatestCurrentDevelopmentVersion (line 226)

Returns the latest current development version.

  • return: If there are current development versions the latest will be returned as an instance of EVSVersion - if there are, not false will be returned.
mixed getLatestCurrentDevelopmentVersion ()
getLatestCurrentStableVersion (line 241)

Returns the latest current stable version.

  • return: If there are current stable versions the latest will be returned as an instance of EVSVersion - if there are not, false will be returned.
mixed getLatestCurrentStableVersion ()
getLatestCurrentVersion (line 255)

Returns the latest current version.

  • return: If there are current versions the latest will be returned as an instance of EVSVersion - if there are not, false will be returned.
mixed getLatestCurrentVersion ()
getLatestDevelopmentRelease (line 212)

Returns the latest development release.

  • return: If there are development releases the latest will be returned as an instance of EVSVersion - if there aren't any development releases the boolean value false is returned.
mixed getLatestDevelopmentRelease ()
getLatestPatchlevelVersion (line 269)

Returns the latest patchlevel version in the branch "$major.$minor".

  • return: If there are releases in the branch "$major.$minor" the latest will be returned as an instance of EVSVersion - if there are not, false will be returned.
mixed getLatestPatchlevelVersion (mixed $major, mixed $minor)
getLatestStableRelease (line 197)

Returns the latest stable release.

  • return: If there are stable releases the latest will be returned as an instance of EVSVersion - if there aren't any stable releases the boolean value false is returned.
mixed getLatestStableRelease ()
getVersion (line 177)

Returns the version specified by the version number passed as argument.

Note that this method only looks in the array $this->versions.

  • return: An instance of EVSVersion or false if no such method exists.
mixed getVersion ([mixed $version = false])
  • mixed $version: The version number or the boolean value false if you just want the first version (which is the case if version support has been disabled for this project and therefore only one version exists). This argument is optional. The default is false.
_loadVersions (line 138)

Fills the arrays $this->versions and $this->releases with instances of EVSVersion.

$this->version and $this->releases get sored by the private method _versionSortCompare.

void _loadVersions ()
_versionSortCompare (line 291)

Method used to sort the versions of the project by release number.

This method is used by _loadVersions. It is passed to usort to perform a user defined sorting.

  • return: An integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
  • access: private
  • see: EVSProject::_loadVersions()
int _versionSortCompare (mixed $o1, mixed $o2, EVSVersion $o1;, EVSVersion $o2;)

Documentation generated on Mon, 8 Dec 2003 13:10:33 +0100 by phpDocumentor 1.2.3