dolibarr 19.0.3
|
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. For exemple "<?php echo 'a' ?><php echo 'b' ?>" |
string | $phpfullcodestring | PHP new string. For exemple "<?php echo 'a' ?><php echo 'c' ?>" |
Definition at line 659 of file website2.lib.php.
References dol_is_file(), getDolGlobalString(), and setEventMessages().
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 399 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 459 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 379 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 290 of file website2.lib.php.
References dol_delete_file(), dol_mkdir(), dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), Website\importWebSite(), 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 419 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 519 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 479 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().
Referenced by Website\importWebSite().
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 63 of file website2.lib.php.
References dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), Website\importWebSite(), 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 141 of file website2.lib.php.
References dol_delete_file(), dol_is_file(), dol_move(), dol_print_error(), dol_syslog(), dolChmod(), and getDolGlobalString().
Referenced by Website\createFromClone(), Website\importWebSite(), 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 499 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 439 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 538 of file website2.lib.php.
References dol_filemtime(), dol_filesize(), dol_print_date(), getAdvancedPreviewUrl(), getDolGlobalInt(), and img_picto().