Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:entwickler:changes_to_functions_and_methods [2016/12/25 15:26]
ximex add new constants
en:entwickler:changes_to_functions_and_methods [2018/04/02 09:06] (current)
fasse [Admidio version 3.3]
Line 53: Line 53:
     * **HTTPS**: true, false     * **HTTPS**: true, false
     * **PORT**: 80, 443, ...     * **PORT**: 80, 443, ...
-    * **HOST**: '​www.example.org:​1234',​ '​www.example.org',​ '​admidio.example.org'​ (with port number if not 80 or 443)+    * **HOST**: '​www.example.org:​1234',​ '​www.example.org',​ '​admidio.example.org'​ (only with port number if not 80 or 443)
     * **DOMAIN**: '​www.example.org',​ '​admidio.example.org'​ (always without port number)     * **DOMAIN**: '​www.example.org',​ '​admidio.example.org'​ (always without port number)
     * **ADMIDIO_SUBFOLDER**:​ '/​subfolder',​ '/​admidio',​ '/'​     * **ADMIDIO_SUBFOLDER**:​ '/​subfolder',​ '/​admidio',​ '/'​
Line 74: Line 74:
     * **FOLDER_MODULES**:​ '/​adm_program/​modules'​     * **FOLDER_MODULES**:​ '/​adm_program/​modules'​
     * **FOLDER_PLUGINS**:​ '/​adm_plugins'​     * **FOLDER_PLUGINS**:​ '/​adm_plugins'​
 +
 +===== Admidio version 3.3 =====
 +
 +=== Bootstrapping ===
 +Simplified the bootstrapping (initialization of the common Admidio stuff).
 +Most stuff got extracted in separate **bootstrap.php**.
 +Autoload is in it's own **autoload.php**.
 +Now it could be enough to require only the **bootstrap.php** if you don't need a database connection.
 +
 +=== Prepared Statement ===
 +To improve the security move from **Database->​query()** to the new **Database->​queryPrepared()** method. You have to adapt the SQL queries and add the necessary parameters
 +
 +=== New ===
 +== Constants ==
 +  * **SCHEME**: '​http'​ or '​https'​
 +  * **COOKIE_PREFIX**:​ Unique prefix for cookies
 +  * **DB_ENGINE**:​ '​mysql'​ or '​pgsql'​
 +  * **DB_HOST**:​ '​localhost'​ or '​127.0.0.1'​
 +  * **DB_PORT**:​ null or port number
 +  * **DB_NAME**:​ the database name
 +  * **DB_USERNAME**:​ the database user
 +  * **DB_PASSWORD**:​ the database user password
 +== Classes ==
 +  * **PhpIniUtils**:​ Manages most of php-ini stuff
 +  * **FileSystemUtils**:​ Manages nearly all FileSystem stuff like copy, move, ...
 +  * **SettingsManager**:​ Manages the organization settings
 +
 +=== Changes/​Deprecations ===
 +== Classes ==
 +  * **Folder**: Use FileSystemUtils instead
 +  * **MyFiles**:​ Use FileSystemUtils instead
 +== Class methods ==
 +  * **Email->​adminNotfication()**:​ '​Email->​adminNotification()'​
 +  * **Email::​getMaxAttachementSize()**:​ '​Email::​getMaxAttachmentSize()'​
 +  * **Language->​addLanguageData()**:​ 'new Language()'​
 +  * **Language->​addLanguagePath()**:​ '​Language->​addLanguageFolderPath()'​
 +  * **Language->​getCountryByCode()**:​ '​Language->​getCountryName()'​
 +  * **Language->​getCountryByName()**:​ '​Language->​getCountryIsoCode()'​
 +  * **LanguageData->​addLanguagePath()**:​ '​LanguageData->​addLanguageFolderPath()'​
 +  * **LanguageData->​getLanguagePaths()**:​ '​LanguageData->​getLanguageFolderPaths()'​
 +  * **LanguageData->​getCountriesArray()**:​ '​LanguageData->​getCountries()'​
 +  * **LanguageData->​setCountriesArray()**:​ '​LanguageData->​setCountries()'​
 +  * **Message->​showInModaleWindow()**:​ '​Message->​showInModalWindow()'​
 +  * **Organization->​getPreferences()**:​ '​Organization->​getSettingsManager()->​getAll()'​
 +  * **Organization->​setPreferences()**:​ '​Organization->​getSettingsManager()->​setMulti()'​
 +  * **PhpIniUtils->​isSafeModeEnabled()**:​ no replacement
 +  * **TableFile->​getCompletePathOfFile()**:​ '​TableFile->​getFullFilePath()'​
 +  * **TableFolder->​getCompletePathOfFolder()**:​ '​TableFolder->​getFolderPath()'​
 +  * **TableRoles->​viewRole()**:​ '​TableRoles->​isVisible()'​
 +  * **User->​columnsValueChanged()**:​ '​User->​hasColumnsValueChanged()'​
 +== Class method params ==
 +  * **new AdmException('​MSG',​ '​PARAM1',​ '​PARAM2'​)**:​ 'new AdmException('​MSG',​ array('​PARAM1',​ '​PARAM2'​))'​
 +  * **AdmException->​setNewMessage('​ID',​ '​PARAM1',​ '​PARAM2'​)**:​ '​AdmException->​setNewMessage('​ID',​ array('​PARAM1',​ '​PARAM2'​))'​
 +  * **Language->​get('​ID',​ '​PARAM1',​ '​PARAM2'​)**:​ '​Language->​get('​ID',​ array('​PARAM1',​ '​PARAM2'​))'​
 +  * **Language->​getLanguage(true)**:​ '​LanguageData::​REFERENCE_LANGUAGE'​
 +  * **Language->​getLanguageIsoCode(true)**:​ '​LanguageData::​REFERENCE_LANGUAGE'​
 +  * **LanguageData->​getLanguage(true)**:​ '​LanguageData::​REFERENCE_LANGUAGE'​
 +== Functions ==
 +  * **admFuncMaxUploadSize()**:​ '​PhpIniUtils::​getUploadMaxSize()'​
 +  * **admFuncGetBytesFromSize()**:​ '​FileSystemUtils::​getHumanReadableBytes()'​
 +  * **admReadTemplateFile()**:​ '​FileSystemUtils::​readFile()'​
  • en/entwickler/changes_to_functions_and_methods.1482675983.txt.gz
  • Last modified: 2016/12/25 15:26
  • by ximex