dolibarr 21.0.0-beta
|
Library for website module (rare functions not required for execution of website) More...
Go to the source code of this file.
Functions | |
dolSaveMasterFile ($filemaster) | |
Save content of a page on disk. | |
dolSavePageAlias ($filealias, $object, $objectpage) | |
Save an alias page on disk (A page that include the reference page). | |
dolSavePageContent ($filetpl, Website $object, WebsitePage $objectpage, $backupold=0) | |
Save content of a page on disk (page name is generally ID_of_page.php). | |
dolSaveIndexPage ($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object=null) | |
Save content of the index.php and/or the wrapper.php page. | |
dolSaveHtmlHeader ($filehtmlheader, $htmlheadercontent) | |
Save content of a page on disk. | |
dolSaveCssFile ($filecss, $csscontent) | |
Save content of a page on disk. | |
dolSaveJsFile ($filejs, $jscontent) | |
Save content of a page on disk. | |
dolSaveRobotFile ($filerobot, $robotcontent) | |
Save content of a page on disk. | |
dolSaveHtaccessFile ($filehtaccess, $htaccess) | |
Save content of a page on disk. | |
dolSaveManifestJson ($file, $content) | |
Save content of a page on disk. | |
dolSaveReadme ($file, $content) | |
Save content of a page on disk. | |
dolSaveLicense ($file, $content) | |
Save content of a page on disk. | |
showWebsiteTemplates (Website $website) | |
Show list of themes. | |
checkPHPCode (&$phpfullcodestringold, &$phpfullcodestring) | |
Check a new string containing only php code (including <php tag) | |
Library for website module (rare functions not required for execution of website)
Definition in file website2.lib.php.
checkPHPCode | ( | & | $phpfullcodestringold, |
& | $phpfullcodestring ) |
Check a new string containing only php code (including <php tag)
string | $phpfullcodestringold | PHP old string (before the change). For example "<?php echo 'a' ?><php echo 'b' ?>" |
string | $phpfullcodestring | PHP new string. For example "<?php echo 'a' ?><php echo 'c' ?>" |
Definition at line 705 of file website2.lib.php.
References dol_is_file(), getDolGlobalString(), and setEventMessages().
Referenced by run_sql().
dolSaveCssFile | ( | $filecss, | |
$csscontent ) |
Save content of a page on disk.
string | $filecss | Full path of filename to generate |
string | $csscontent | Content of file |
Definition at line 434 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveHtaccessFile | ( | $filehtaccess, | |
$htaccess ) |
Save content of a page on disk.
string | $filehtaccess | Full path of filename to generate |
string | $htaccess | Content of file |
Definition at line 494 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveHtmlHeader | ( | $filehtmlheader, | |
$htmlheadercontent ) |
Save content of a page on disk.
string | $filehtmlheader | Full path of filename to generate |
string | $htmlheadercontent | Content of file |
Definition at line 414 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveIndexPage | ( | $pathofwebsite, | |
$fileindex, | |||
$filetpl, | |||
$filewrapper, | |||
$object = null ) |
Save content of the index.php and/or the wrapper.php page.
string | $pathofwebsite | Path of website root |
string | $fileindex | Full path of file index.php |
string | $filetpl | File tpl the index.php page redirect to (used only if $fileindex is provided) |
string | $filewrapper | Full path of file wrapper.php |
Website | $object | Object website |
Definition at line 325 of file website2.lib.php.
References $object, dol_delete_file(), dol_mkdir(), dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), and Website\rebuildWebSiteFiles().
dolSaveJsFile | ( | $filejs, | |
$jscontent ) |
Save content of a page on disk.
For example into documents/website/mywebsite/javascript.js.php file.
string | $filejs | Full path of filename to generate |
string | $jscontent | Content of file |
Definition at line 454 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveLicense | ( | $file, | |
$content ) |
Save content of a page on disk.
string | $file | Full path of filename to generate |
string | $content | Content of file |
Definition at line 554 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveManifestJson | ( | $file, | |
$content ) |
Save content of a page on disk.
string | $file | Full path of filename to generate |
string | $content | Content of file |
Definition at line 514 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveMasterFile | ( | $filemaster | ) |
Save content of a page on disk.
string | $filemaster | Full path of filename master.inc.php for website to generate |
Definition at line 32 of file website2.lib.php.
References dol_delete_file(), dol_syslog(), and dolChmod().
dolSavePageAlias | ( | $filealias, | |
$object, | |||
$objectpage ) |
Save an alias page on disk (A page that include the reference page).
It saves file into the root directory but also into language subdirectory.
string | $filealias | Full path of filename to generate |
Website | $object | Object website |
WebsitePage | $objectpage | Object websitepage |
Definition at line 62 of file website2.lib.php.
References $object, dol_mkdir(), dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), and Website\rebuildWebSiteFiles().
dolSavePageContent | ( | $filetpl, | |
Website | $object, | ||
WebsitePage | $objectpage, | ||
$backupold = 0 ) |
Save content of a page on disk (page name is generally ID_of_page.php).
Page contents are always saved into "root" directory. Only aliases pages saved with dolSavePageAlias() can be in root or language subdir.
string | $filetpl | Full path of filename to generate |
Website | $object | Object website |
WebsitePage | $objectpage | Object websitepage |
int | $backupold | 1=Make a backup of old page |
Definition at line 142 of file website2.lib.php.
References $object, archiveOrBackupFile(), dol_delete_file(), dol_is_file(), dol_print_error(), dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), and Website\rebuildWebSiteFiles().
dolSaveReadme | ( | $file, | |
$content ) |
Save content of a page on disk.
string | $file | Full path of filename to generate |
string | $content | Content of file |
Definition at line 534 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
dolSaveRobotFile | ( | $filerobot, | |
$robotcontent ) |
Save content of a page on disk.
string | $filerobot | Full path of filename to generate |
string | $robotcontent | Content of file |
Definition at line 474 of file website2.lib.php.
References dol_mkdir(), dol_syslog(), and dolChmod().
showWebsiteTemplates | ( | Website | $website | ) |
Show list of themes.
Show all thumbs of themes/skins
Website | $website | Object website to load the template into |
Definition at line 573 of file website2.lib.php.
References $conf, dol_buildpath(), dol_filemtime(), dol_filesize(), dol_print_date(), getAdvancedPreviewUrl(), getDolGlobalInt(), img_picto(), and newToken().