dolibarr
x.y.z
|
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. More... | |
dolSavePageAlias ($filealias, $object, $objectpage) | |
Save an alias page on disk (A page that include the reference page). More... | |
dolSavePageContent ($filetpl, Website $object, WebsitePage $objectpage, $backupold=0) | |
Save content of a page on disk (page name is generally ID_of_page.php). More... | |
dolSaveIndexPage ($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object=null) | |
Save content of the index.php and/or the wrapper.php page. More... | |
dolSaveHtmlHeader ($filehtmlheader, $htmlheadercontent) | |
Save content of a page on disk. More... | |
dolSaveCssFile ($filecss, $csscontent) | |
Save content of a page on disk. More... | |
dolSaveJsFile ($filejs, $jscontent) | |
Save content of a page on disk. More... | |
dolSaveRobotFile ($filerobot, $robotcontent) | |
Save content of a page on disk. More... | |
dolSaveHtaccessFile ($filehtaccess, $htaccess) | |
Save content of a page on disk. More... | |
dolSaveManifestJson ($file, $content) | |
Save content of a page on disk. More... | |
dolSaveReadme ($file, $content) | |
Save content of a page on disk. More... | |
dolSaveLicense ($file, $content) | |
Save content of a page on disk. More... | |
showWebsiteTemplates (Website $website) | |
Show list of themes. More... | |
checkPHPCode ($phpfullcodestringold, $phpfullcodestring) | |
checkPHPCode More... | |
Library for website module (rare functions not required for execution of website)
Definition in file website2.lib.php.
checkPHPCode | ( | $phpfullcodestringold, | |
$phpfullcodestring | |||
) |
checkPHPCode
string | $phpfullcodestringold | PHP old string |
string | $phpfullcodestring | PHP new string |
Definition at line 682 of file website2.lib.php.
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 411 of file website2.lib.php.
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 477 of file website2.lib.php.
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 389 of file website2.lib.php.
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 297 of file website2.lib.php.
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 433 of file website2.lib.php.
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 543 of file website2.lib.php.
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 499 of file website2.lib.php.
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.
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 65 of file website2.lib.php.
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 147 of file website2.lib.php.
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 521 of file website2.lib.php.
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 455 of file website2.lib.php.
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 564 of file website2.lib.php.