$tmp_dir
$tmp_dir :
Handles all package functions -- create, compile, download, install, remove.
insert(integer $repo_id,string $pkg_alias,string $name,string $access = 'public',string $version = '1.0.0')
Insert a new package into the database
integer | $repo_id | The ID# of the repo the package belongs to |
string | $pkg_alias | The alias of the package |
string | $name | The full name of the package |
string | $access | Access level of the package (public / private), defaults to 'public' |
string | $version | The version of the package, defaults to 1.0.0 |
create(integer $repo_id,string $pkg_alias,string $name,string $access = 'public',string $version = '1.0.0'): integer
Create a new package for development.
integer | $repo_id | The ID# of the repo the package belongs to |
string | $pkg_alias | The alias of the package |
string | $name | The full name of the package |
string | $access | Access level of the package (public / private), defaults to 'public' |
string | $version | The version of the package, defaults to 1.0.0 |
The ID# of the newly created package
publish(string $pkg_alias,string $version = ''): boolean
Compiles a package, and uploads it to the appropriate repository.
string | $pkg_alias | The alias of the package to publish. |
string | $version | The version of the package being published (eg. 1.0.4) |
Whther or not the operation was successful.
install(string $pkg_alias,integer $repo_id)
Fully install a package. Downoads the package from the appropriate repository, unpacks it, and installed it.
string | $pkg_alias | The alias of the packagte to install |
integer | $repo_id | Optional ID# of repo to download from. If not specified, all repos are searched. |
download(string $pkg_alias,integer $repo_id): string
Download a package from a repository, and unpack it into the tmp system directory
string | $pkg_alias | The alias of the package to download |
integer | $repo_id | Optional ID# of repo to download from. If not specified, all repos are searched. |
Directory path of where the package was unpacked at
install_from_dir(string $pkg_alias,string $tmp_dir,integer $is_git)
Install package from directory
Install a package from a directory. This assumes the package has already been downloaded, unpacked on the server, and added to the database
string | $pkg_alias | The alias of the package being installed |
string | $tmp_dir | The directory where the package is currently unpacked |
integer | $is_git | A 1/0 whether or not it's from a git repo. |