protected function add_A_EXT_LOADBALANCER($id)
 {
     $parseFormat = "/^(fcgi|fcgiauth|lsapi|servlet|proxy)::.+\$/";
     $parseHelp = 'ExtAppType::ExtAppName, allowed types are fcgi, fcgiauth, lsapi, servlet and proxy. e.g. fcgi::myphp, servlet::tomcat';
     $attrs = array($this->_attrs['ext_name'], DTblDefBase::NewParseTextAreaAttr('workers', DMsg::ALbl('l_workers'), $parseFormat, $parseHelp, true, 3, 'extWorkers', 0, 0, 1), $this->_attrs['note']);
     $defaultExtract = array('type' => 'loadbalancer');
     $this->_tblDef[$id] = DTbl::NewIndexed($id, DMsg::ALbl('l_extlb'), $attrs, 'name', NULL, $defaultExtract);
 }
Example #2
0
 protected function add_VT_CTXG($id)
 {
     $attrs = array_merge($this->get_ctx_attrs('uri'), array($this->_attrs['ctx_location'], DTblDefBase::NewBoolAttr('allowBrowse', DMsg::ALbl('l_allowbrowse'), false), $this->_attrs['note']), $this->get_expires_attrs(), array($this->_attrs['extraHeaders'], DTblDefBase::NewParseTextAreaAttr('addMIMEType', DMsg::ALbl('l_mimetype'), "/[A-z0-9_\\-\\.\\+]+\\/[A-z0-9_\\-\\.\\+]+(\\s+[A-z0-9_\\-\\+]+)+/", DMsg::ALbl('parse_mimetype'), true, 2, NULL, 0, 0, 1), DTblDefBase::NewParseTextAttr('forceType', DMsg::ALbl('l_forcemimetype'), "/^([A-z0-9_\\-\\.\\+]+\\/[A-z0-9_\\-\\.\\+]+)|(NONE)\$/i", DMsg::ALbl('parse_forcemimetype')), DTblDefBase::NewParseTextAttr('defaultType', DMsg::ALbl('l_defaultmimetype'), "/^[A-z0-9_\\-\\.\\+]+\\/[A-z0-9_\\-\\.\\+]+\$/", DMsg::ALbl('parse_defaultmimetype')), $this->_attrs['indexFiles'], $this->_attrs['autoIndex']), $this->get_ctx_attrs('auth'), $this->get_ctx_attrs('rewrite'), $this->get_ctx_attrs('charset'));
     $defaultExtract = array('type' => 'NULL');
     $this->_tblDef[$id] = DTbl::NewIndexed($id, DMsg::ALbl('l_ctxg'), $attrs, 'uri', 'generalContext', $defaultExtract);
 }