mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
add php doc (#31173)
* add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc * add phpdoc
This commit is contained in:
parent
4b3c59fe64
commit
340bd12ee7
|
|
@ -97,6 +97,9 @@ class ActionCommReminder extends CommonObject
|
|||
*/
|
||||
public $entity;
|
||||
|
||||
/**
|
||||
* @var int date remind
|
||||
*/
|
||||
public $dateremind;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -47,6 +47,9 @@ class Website extends CommonObject
|
|||
*/
|
||||
public $table_element = 'website';
|
||||
|
||||
/**
|
||||
* @var string[] List of child tables. To know object to delete on cascade.
|
||||
*/
|
||||
protected $childtablesoncascade = array();
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -62,42 +62,74 @@ class WebsitePage extends CommonObject
|
|||
*/
|
||||
protected $childtablesoncascade = array('categorie_website_page');
|
||||
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
* @var int Website ID
|
||||
*/
|
||||
public $fk_website;
|
||||
|
||||
/**
|
||||
* @var ?int Page ID
|
||||
*/
|
||||
public $fk_page; // If translation of another page
|
||||
|
||||
/**
|
||||
* @var string Page url
|
||||
*/
|
||||
public $pageurl;
|
||||
|
||||
/**
|
||||
* @var string Alias alt
|
||||
*/
|
||||
public $aliasalt;
|
||||
|
||||
/**
|
||||
* @var string Container type
|
||||
*/
|
||||
public $type_container;
|
||||
|
||||
/**
|
||||
* @var string title
|
||||
*/
|
||||
public $title;
|
||||
|
||||
/**
|
||||
* @var string description
|
||||
*/
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* @var string image
|
||||
*/
|
||||
public $image;
|
||||
|
||||
/**
|
||||
* @var string keywords
|
||||
*/
|
||||
public $keywords;
|
||||
|
||||
/**
|
||||
* @var string language code ('en', 'fr', 'en-gb', ..)
|
||||
*/
|
||||
public $lang;
|
||||
|
||||
/**
|
||||
* @var int allowed in frames
|
||||
*/
|
||||
public $allowed_in_frames;
|
||||
|
||||
/**
|
||||
* @var string html header
|
||||
*/
|
||||
public $htmlheader;
|
||||
|
||||
/**
|
||||
* @var string content
|
||||
*/
|
||||
public $content;
|
||||
|
||||
/**
|
||||
* @var string grabbed from
|
||||
*/
|
||||
public $grabbed_from;
|
||||
|
||||
/**
|
||||
|
|
@ -105,7 +137,14 @@ class WebsitePage extends CommonObject
|
|||
*/
|
||||
public $status;
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
*/
|
||||
public $fk_user_creat;
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
*/
|
||||
public $fk_user_modif;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -782,6 +782,7 @@ if ($action == 'addcontainer' && $usercanedit) {
|
|||
$action = 'createcontainer';
|
||||
}
|
||||
|
||||
$pageurl = '';
|
||||
if (!$error) {
|
||||
// Clean url to grab, so url can be
|
||||
// http://www.example.com/ or http://www.example.com/dir1/ or http://www.example.com/dir1/aaa
|
||||
|
|
@ -1151,7 +1152,7 @@ if ($action == 'addcontainer' && $usercanedit) {
|
|||
$objectpage->otherlang = GETPOST('WEBSITE_OTHERLANG', 'aZ09comma');
|
||||
$objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha');
|
||||
$objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml'));
|
||||
$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09');
|
||||
$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
|
||||
$objectpage->htmlheader = GETPOST('htmlheader', 'none'); // Must accept tags like '<script>' and '<link>'
|
||||
$objectpage->author_alias = GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml');
|
||||
$objectpage->object_type = GETPOST('WEBSITE_OBJECTCLASS');
|
||||
|
|
@ -2037,7 +2038,7 @@ if ($action == 'updatemeta' && $usercanedit) {
|
|||
$objectpage->description = str_replace(array('<', '>'), '', GETPOST('WEBSITE_DESCRIPTION', 'alphanohtml'));
|
||||
$objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha');
|
||||
$objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml'));
|
||||
$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09');
|
||||
$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
|
||||
$objectpage->htmlheader = trim(GETPOST('htmlheader', 'restricthtmlallowlinkscript')); // Must accept tags like '<script>' and '<link>'
|
||||
$objectpage->fk_page = (GETPOSTINT('pageidfortranslation') > 0 ? GETPOSTINT('pageidfortranslation') : 0);
|
||||
$objectpage->author_alias = trim(GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml'));
|
||||
|
|
@ -4362,7 +4363,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
|||
$pagelang = GETPOST('WEBSITE_LANG', 'aZ09');
|
||||
}
|
||||
if (GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09')) {
|
||||
$pageallowedinframes = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09');
|
||||
$pageallowedinframes = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
|
||||
}
|
||||
if (GETPOST('htmlheader', 'none')) { // Must accept tags like '<script>' and '<link>'
|
||||
$pagehtmlheader = GETPOST('htmlheader', 'none');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user