apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: PEAR_Frontend_Gtk2_Package

Source Location: /PEAR_Frontend_Gtk2-1.1.0/PEAR/Frontend/Gtk2/Package.php

Class Overview


A single PEAR package with some of its data like name, category, installed version, latest version, summary and description


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 9]
A single PEAR package with some of its data like name, category, installed version, latest version, summary and description


[ Top ]


Class Variables

$bFullyLoaded =  false

[line 11]

  • Access: protected

Type:   mixed


[ Top ]

$strCategory =  null

[line 15]

  • Access: protected

Type:   mixed


[ Top ]

$strChannel =  null

[line 14]

  • Access: protected

Type:   mixed


[ Top ]

$strDescription =  null

[line 17]

  • Access: protected

Type:   mixed


[ Top ]

$strName =  null

[line 13]

  • Access: protected

Type:   mixed


[ Top ]

$strSummary =  null

[line 16]

  • Access: protected

Type:   mixed


[ Top ]

$strVersionInstalled =  null

[line 19]

  • Access: protected

Type:   mixed


[ Top ]

$strVersionLatest =  null

[line 18]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 26]

PEAR_Frontend_Gtk2_Package __construct( string $strName, $strChannel)

Constructs a package object
  • Access: public

Parameters:

string   $strName   —  the package name
   $strChannel   — 

[ Top ]

getCategory   [line 122]

void getCategory( )

  • Access: public

[ Top ]

getChannel   [line 104]

void getChannel( )

  • Access: public

[ Top ]

getDescription   [line 116]

void getDescription( )

  • Access: public

[ Top ]

getInstalledVersion   [line 129]

void getInstalledVersion( )


[ Top ]

getLatestVersion   [line 136]

void getLatestVersion( )


[ Top ]

getName   [line 98]

void getName( )

  • Access: public

[ Top ]

getSummary   [line 110]

void getSummary( )

  • Access: public

[ Top ]

guessCategory   [line 84]

string guessCategory( string $strName)

Tries to guess the category name from the package name

e.g. Dev_Inspector should have "Dev" as category If no category can be guessed, "" (empty string) will be returned

  • Return: The guessed category name
  • Access: public

Parameters:

string   $strName   —  The package name

[ Top ]

incorporateLocalInfo   [line 39]

void incorporateLocalInfo( $arPackageInfo)

Loads the package information array from

PEAR_Registry::packageInfo() into the local variables

  • Access: public

Parameters:

   $arPackageInfo   — 

[ Top ]

refreshLocalInfo   [line 58]

void refreshLocalInfo( )

Reloads the local package info.

Useful if the package has been installed or uninstalled

  • Access: public

[ Top ]

setCategory   [line 153]

void setCategory( $strCategory)


Parameters:

   $strCategory   — 

[ Top ]

setChannel   [line 160]

void setChannel( $strChannel)


Parameters:

   $strChannel   — 

[ Top ]

setDescription   [line 174]

void setDescription( $strDescription)


Parameters:

   $strDescription   — 

[ Top ]

setFullyLoaded   [line 181]

void setFullyLoaded( $bFullyLoaded)


Parameters:

   $bFullyLoaded   — 

[ Top ]

setInstalledVersion   [line 188]

void setInstalledVersion( $strVersionInstalled)


Parameters:

   $strVersionInstalled   — 

[ Top ]

setLatestVersion   [line 198]

void setLatestVersion( $strVersionLatest)


Parameters:

   $strVersionLatest   — 

[ Top ]

setName   [line 146]

void setName( $strName)


Parameters:

   $strName   — 

[ Top ]

setSummary   [line 167]

void setSummary( $strSummary)


Parameters:

   $strSummary   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:46:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.