Php_Module

Class Php_Module
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
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
# _verify_conf( Opcenter\Service\ConfigurationContext $ctx )
public
public
public
# enable_fallback( null|string $mode = NULL )
Enable fallback interpreter support
public
# jailed( )
PHP is jailed with PHP-FPM
public
# pool_change_owner( string $owner , string $pool = NULL )
Change pool owner
public
# pool_cache_status( string $pool = NULL )
Get pool cache statistics
public
# pool_restart( string $pool = NULL )
Restart PHP-FPM pool state
public
# pool_set_state( string $pool = NULL, string $state = 'stop' )
Set PHP-FPM pool state
public
# pools( )
Get jail pools
public
# pool_status( string $pool = '' )
Get pool status
public
# _cron( Cronus $c )
public
# pool_info( string $pool = '' )
Get pool info
public
# migrate_directives( string $hostname , string $path = '', string $from = NULL )
Migrate PHP directives to configured engine format
public
public
public
# _edit_user( string $userold , string $usernew , array $oldpwd )
Methods inherited from Module\Support\Php
getPersonalities(), personalityRoot(), personalityExists(), getPersonalityPathFromPersonality(), getPersonalityPort()
Methods inherited from Module\Skeleton\Standard
__construct(), setUserParameters(), autoloadModule(), __wakeup(), _invoke(), __debugInfo(), getExportedFunctions(), _reset(), cleanUserParameters(), query()
Constants Summary
public string COMPOSER_LOCATION
# '/usr/share/pear/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