Implements 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
Return a cleaned version of this packages name with spaces and special characters removed.
Return the count of versions of this package
Return an iterator for the versions list
Returns the numeric index of a given version number, or false if it does not exist.
Return the name of the package
Tests for existence of an array index
Retrieves the value at an array index.
Sets the value at an array index
Deletes an entry at an array index
Populates the list of versions from a string containing a comma- separated list of installed version numbers.
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.
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