Ejemplo n.º 1
0
        public object GetConfigIssues()
        {
            RemoteObjectCollection <PHPConfigIssue> configIssues = null;

            try
            {
                var mgmtUnitWrapper = new ManagementUnitWrapper(ManagementUnit);
                var configHelper    = new PHPConfigHelper(mgmtUnitWrapper);
                configIssues = configHelper.ValidateConfiguration();
            }
            catch (FileNotFoundException)
            {
                RaiseException("ErrorPHPIniNotFound");
            }
            catch (InvalidOperationException)
            {
                RaiseException("ErrorPHPIsNotRegistered");
            }

            return((configIssues != null) ? configIssues.GetData() : null);
        }
Ejemplo n.º 2
0
        public object GetAllPHPVersions()
        {
            EnsureServerOrSiteConnection();
            RemoteObjectCollection <PHPVersion> versions = null;

            try
            {
                var mgmtUnitWrapper = new ManagementUnitWrapper(ManagementUnit);
                var configHelper    = new PHPConfigHelper(mgmtUnitWrapper);
                versions = configHelper.GetAllPHPVersions();
            }
            catch (FileNotFoundException)
            {
                RaiseException("ErrorPHPIniNotFound");
            }
            catch (InvalidOperationException)
            {
                RaiseException("ErrorPHPIsNotRegistered");
            }

            return((versions != null) ? versions.GetData() : null);
        }
Ejemplo n.º 3
0
 internal void AddOrUpdateSettings(RemoteObjectCollection <PHPIniSetting> settings)
 {
     Invoke("AddOrUpdateSettings", settings.GetData());
 }
Ejemplo n.º 4
0
 internal void UpdateExtensions(RemoteObjectCollection <PHPIniExtension> extensions)
 {
     Invoke("UpdateExtensions", extensions.GetData());
 }