add php doc (#31173)

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc
This commit is contained in:
Frédéric FRANCE 2024-09-28 11:15:38 +02:00 committed by GitHub
parent 4b3c59fe64
commit 340bd12ee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 51 additions and 5 deletions

View File

@ -97,6 +97,9 @@ class ActionCommReminder extends CommonObject
*/
public $entity;
/**
* @var int date remind
*/
public $dateremind;
/**

View File

@ -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();
/**

View File

@ -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;
/**

View File

@ -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');