Overview

Classes

  • Package
  • Service
  • Tlaloc_File
  • User
  • Overview
  • Class
  • Tree

Class Package

A package management object meant for OpenBSD

this object should allow; listing, verifying, updating, removing and installing OpenBSD port packages. Meant to virtualize the base command line tools so we can later port this object to other OSes like Linux, CentOS, etc..

Located at Package.php
Methods summary
public
# __construct( mixed $array_Repositories = null )

Package::__construct() Make sure to instantiate this object with an Array list of Repositories

Package::__construct() Make sure to instantiate this object with an Array list of Repositories

Parameters

$array_Repositories
mixed
public string
# Version( mixed $Pkg_Name = null, boolean $use_REST = false, boolean $use_SHORT = false )

Package::Version() Get the installed version of a specific package

Package::Version() Get the installed version of a specific package

Parameters

$Pkg_Name
mixed
$use_REST
boolean
boolean, true for REST, false for JSON
$use_SHORT
boolean

Returns

string
$Version
public boolean
# isInstalled( mixed $Pkg_Name )

Package::isInstalled() Verify if a package is installed

Package::isInstalled() Verify if a package is installed

Parameters

$Pkg_Name
mixed

Returns

boolean
$result
public boolean
# Package_List( mixed $Pkg_Name = null, boolean $use_REST = false, boolean $use_SHORT = false )

Package::Package_List() Obtain a list of installed packages.

Package::Package_List() Obtain a list of installed packages.

Parameters

$Pkg_Name
mixed
$use_REST
boolean
$use_SHORT
boolean

Returns

boolean
$result
private string
# Pick_A_Repos( )

Package::Pick_A_Repos() Internal method which returns a random repository from the list.

Package::Pick_A_Repos() Internal method which returns a random repository from the list.

Returns

string
$repository_line
public boolean
# Install( mixed $Pkg_Name, boolean $use_REST = false, boolean $use_SHORT = false, mixed $Repository = null )

Package::Install() Install a particular package ( using the OpenBSD package methodology )

Package::Install() Install a particular package ( using the OpenBSD package methodology )

Parameters

$Pkg_Name
mixed
$use_REST
boolean
$use_SHORT
boolean
$Repository
mixed

Returns

boolean
$result
Properties summary
public array $SUPPORTED_COMMANDS array("list"=>"List_Packages","version"=>"Verify_Package","update"=>"Update_Package","delete","install"=>"install")
#
public array $Repos array()
#
public array $Digest array()
#
API documentation generated by ApiGen 2.6.0