CriticalI_PackageImplements interfaces:
A Package is a collection of one or more installed package versions.
It can be treated as a list (array) of installed versions. Accessing versions by numeric index provides a list of installed version in ascending order. Accessing versions by string index allows you access them by version number.
Located in /Core/lib/CriticalI/Package.php (line 13)
| Class | Description |
|---|---|
CriticalI_Project_Package
|
CriticalI_Project_Package is a CriticalI_Package that has been installed within a project. |
CriticalI_Remote_Package
|
CriticalI_Remote_Package is a collection of CriticalI_Package versions available from one or more remote repository. |
Constructor __construct (line 24)
Constructor
clean_name (line 43)
Return a cleaned version of this packages name with spaces and special characters removed.
count (line 227)
Return the count of versions of this package
getIterator (line 149)
Return an iterator for the versions list
index_of_version (line 135)
Returns the numeric index of a given version number, or false if it does not exist.
name (line 34)
Return the name of the package
offsetExists (line 158)
Tests for existence of an array index
offsetGet (line 171)
Retrieves the value at an array index.
offsetSet (line 184)
Sets the value at an array index
offsetUnset (line 212)
Deletes an entry at an array index
populate_versions_from_string (line 53)
Populates the list of versions from a string containing a comma- separated list of installed version numbers.
satisfy_dependency (line 116)
Return the version that satisfies the dependency required by the given version dependency string or null if not found.
Version dependency strings have a number of modifiers that affect how they will be interpreted. If no modifiers are specified, any version number that is greater than or equal to the specified version is considered a match as long as the major version numbers are the same. That is, if 1.5.287 is specified, versions 1.5.287 and 1.6.4 will match, however 1.5.14 and 2.3.0 will not. If the version number is followed by an exclamation mark (e.g. 1.5.287!), only the exact version number will be considered a match. If the version number is followed by a plus sign (e.g. 1.5.287+), any version number greater than or equal to that version will be considered a match, even if the major version numbers differ. If the version number is followed by a minus sign (e.g. 1.5.287-), any version number less than or equal to that version will be considered a match, even if the major version numbers differ. A range may also be specified using a dash to separate the numbers (e.g. 1.5.287-1.6.2), in which case any version number between or including the two end numbers shall be considered a match. Finally, an asterisk (*) may be specified to indicate any version.
versions_string (line 84)
Returns a comma-separated list of version strings for the versions this package contains.
Documentation generated on Wed, 25 Apr 2012 09:46:44 -0700 by phpDocumentor 1.4.3