Class CriticalI_Package_Directory

Description

A package directory represents an uninstalled directory for a package.

It can be used to query the package for information.

Located in /Core/lib/CriticalI/Package/Directory.php (line 10)


	
			
Variable Summary
 mixed $directory
 mixed $name
 mixed $properties
 mixed $version
Method Summary
 CriticalI_Package_Directory __construct (string $name, string $dir)
 string directory ()
 void has_commands ()
 string name ()
 mixed property (string $name, [mixed $default = null])
 string version ()
Variables
mixed $directory (line 11)
  • access: protected
mixed $name (line 13)
  • access: protected
mixed $properties (line 12)
  • access: protected
mixed $version (line 14)
  • access: protected
Methods
Constructor __construct (line 22)

Constructor

  • access: public
CriticalI_Package_Directory __construct (string $name, string $dir)
  • string $name: Package name or folder name containing the package
  • string $dir: The directory containing the package
directory (line 36)

Return the directory being examined

  • access: public
string directory ()
has_commands (line 72)

Test this directory to see if it has installed commands

  • access: public
void has_commands ()
name (line 44)

Return the package name

  • access: public
string name ()
property (line 63)

Return the value of a property for this package version

  • access: public
mixed property (string $name, [mixed $default = null])
  • string $name: The name of the property to retrieve
  • mixed $default: The default value for the property if not found
version (line 52)

Return the package version

  • access: public
string version ()

Documentation generated on Wed, 25 Apr 2012 09:46:42 -0700 by phpDocumentor 1.4.3