Php_Module

+------------------------------------------------------------+ | apnscp | +------------------------------------------------------------+ | Copyright (c) Apis Networks | +------------------------------------------------------------+ | Licensed under Artistic License 2.0 | +------------------------------------------------------------+ | Author: Matt Saladna (msaladna@apisnetworks.com) | +------------------------------------------------------------+
extends Module_Support_Php implements Opcenter\Contracts\Hookable
Methods Summary
public
# install_package( string $module )
Install PEAR package
public
# list_installed_packages( )
List PEAR packages installed for account Keys- is_local (bool) : package is local to account version (double): version number
public
# package_description( string $mModule )
string get_pear_description (string) Fetches the description for a PEAR package
public
# list_remote_packages( )
array list_remote_packages (void) Queries PEAR for all available PEAR packages, analogous to running pear list-all from the command line.
public
# add_pear_channel( string $xml )
Add PHP channel to PEAR package manager
public
# remove_channel( string $channel )
Remove PEAR channel from PEAR package manager
public
# list_channels( )
List all channels configured in PHP PEAR package manager Sample response- array(2) { [0]=> array(5) { ["channel"]=> string(12) "pear.php.net" ["summary"]=> string(40) "PHP Extension and Application Repository" } [1]=> array(5) { ["channel"]=> string(12) "pecl.php.net" ["summary"]=> string(31) "PHP Extension Community Library" } }
public
# get_channel_info( string $channel )
Retrieve PEAR channel information Basic wrapper to pear channel-info <channel> command Sample response- array(4) { ["server"]=> string(12) "pear.php.net" ["alias"]=> string(4) "pear" ["summary"]=> string(40) "PHP Extension and Application Repository" ["version"]=> NULL }
public
# version( )
string get_php_version() Returns the available PHP interpreter version on the server

cache


privilege


public
# enable_fallback( null|string $mode = NULL )
Enable fallback interpreter support
public
public
public
public
# fallback_enabled( string|null $mode = NULL )
Verify if fallback enabled for given personality
public
# disable_fallback( $mode = '' )
Disable PHP fallback support
public
public
# _verify_conf( Opcenter\Service\ConfigurationContext $ctx )
public
public
public
public
public
# _edit_user( string $userold , string $usernew , array $oldpwd )
Methods inherited from Module_Support_Php
getPersonalities(), personalityExists(), getPersonalityPort(), getPersonalityPathFromPersonality(), personalityRoot()
Methods inherited from Module\Skeleton\Standard
__construct(), set_user_parameters(), clean_user_parameters(), set_session_id(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), get_service_names(), get_services(), get_new_services(), get_active_services(), get_config(), get_service_value(), set_config_journal(), set_config(), query(), _resetModule()
Constants Summary
public string COMPOSER_LOCATION
# '/usr/bin/composer.phar'
Constants inherited from Module\Skeleton\Standard
DEPENDENCY_MAP
Properties Summary
public $exportedFunctions
# array ( '*' => 2, 'version' => 15, )
Properties inherited from Module\Skeleton\Standard
$exportedFunctions, $username, $password, $domain, $user_id, $group_id, $permission_level, $session_id, $site, $site_id, $pgsql, $mysql