/** * Generate module: * - Display a wildcard in the back end * - Declare actionlist with templates and compilers in the front end */ public function generate() { if (!extension_loaded('soap')) { return '<p class="tl_empty">SOAP extension not loaded (configure PHP with --enable-soap).</p>'; } // if $this->actions = array(array('', 'repository_catlist', 'listExtensions'), array('view', 'repository_catview', 'viewExtension')); return parent::generate(); }
/** * Generate module: * - Display a wildcard in the back end * - Declare actionlist with templates and compilers in the front end * @return string */ public function generate() { if (!extension_loaded('soap')) { System::loadLanguageFile('tl_repository'); return '<p class="tl_empty">' . $GLOBALS['TL_LANG']['tl_repository']['missingSoapModule'] . '</p>'; } // if $this->actions = array(array('', 'repository_catlist', 'listExtensions'), array('view', 'repository_catview', 'viewExtension')); return parent::generate(); }
/** * Initialize object (do not remove) */ public function __construct() { try { parent::__construct(); $this->strWSDL = trim($GLOBALS['TL_CONFIG']['repository_wsdl']); $this->client = new SoapClient($this->strWSDL, array('soap_version' => SOAP_1_2, 'compression' => SOAP_COMPRESSION_ACCEPT | ZLIB_ENCODING_GZIP | 1)); } catch (Exception $exc) { $this->log($exc->getMessage(), __CLASS__ . ' ' . __FUNCTION__, 'ERROR'); $this->blnNoError = false; } }
/** * Generate module: * - Display a wildcard in the back end * - Declare actionlist with templates and compilers in the front end */ public function generate() { if ($this->Input->get('update') != 'database' && !extension_loaded('soap')) { $this->loadLanguageFile('tl_repository'); $theme = new RepositoryBackendTheme(); return ' <div id="tl_buttons" class="buttonwrapper"> ' . $theme->createMainButton('dbcheck16', $this->createUrl(array('update' => 'database')), $GLOBALS['TL_LANG']['tl_repository']['updatedatabase']) . ' </div> <p class="tl_empty">SOAP extension not loaded (configure PHP with --enable-soap).</p>'; } // if $this->actions = array(array('', 'repository_mgrlist', 'listinsts'), array('edit', 'repository_mgredit', 'edit'), array('install', 'repository_mgrinst', 'install'), array('upgrade', 'repository_mgrupgd', 'upgrade'), array('update', 'repository_mgrupdt', 'update'), array('uninstall', 'repository_mgruist', 'uninstall')); return parent::generate(); }
/** * Generate module: * - Display a wildcard in the back end * - Declare actionlist with templates and compilers in the front end * @return string */ public function generate() { if (Input::get('update') != 'database' && !extension_loaded('soap')) { System::loadLanguageFile('tl_repository'); $theme = new RepositoryBackendTheme(); return ' <div id="tl_buttons" class="buttonwrapper"> ' . $theme->createMainButton('dbcheck16', $this->createUrl(array('update' => 'database')), $GLOBALS['TL_LANG']['tl_repository']['updatedatabase']) . ' </div> <p class="tl_empty">' . $GLOBALS['TL_LANG']['tl_repository']['missingSoapModule'] . '</p>'; } // if $this->actions = array(array('', 'repository_mgrlist', 'listinsts'), array('edit', 'repository_mgredit', 'edit'), array('install', 'repository_mgrinst', 'install'), array('upgrade', 'repository_mgrupgd', 'upgrade'), array('update', 'repository_mgrupdt', 'update'), array('uninstall', 'repository_mgruist', 'uninstall')); // Switch to maintenance mode (see #4561) if (Input::post('repository_action') == 'install' || Input::post('repository_action') == 'uninstall') { Config::persist('maintenanceMode', true); } return parent::generate(); }