@@ -50,26 +50,25 @@ abstract class CommonDBRelation extends CommonDBConnexity
5050 public static $ itemtype_1 ; // Type ref or field name (must start with itemtype)
5151 /** @var ?string $items_id_1 */
5252 public static $ items_id_1 ; // Field name
53- // * entity inheritance
54- /** @var bool */
53+ /** @var bool If entity must be taken from item 1 */
5554 public static $ take_entity_1 = true ;
5655 // * rights
5756 /** @var CommonDBConnexity::DONT_CHECK_ITEM_RIGHTS|CommonDBConnexity::HAVE_VIEW_RIGHT_ON_ITEM|CommonDBConnexity::HAVE_SAME_RIGHT_ON_ITEM */
5857 public static $ checkItem_1_Rights = self ::HAVE_SAME_RIGHT_ON_ITEM ;
59- /** @var bool */
58+ /** @var bool If item 1 must be attached to the relation */
6059 public static $ mustBeAttached_1 = true ;
6160 // * log
62- /** @var bool */
61+ /** @var bool If historical logs must be done for item 1 */
6362 public static $ logs_for_item_1 = true ;
64- /** @var Log::HISTORY_* */
63+ /** @var Log::HISTORY_* The historical log entry action type to use for add actions */
6564 public static $ log_history_1_add = Log::HISTORY_ADD_RELATION ;
66- /** @var Log::HISTORY_* */
65+ /** @var Log::HISTORY_* The historical log entry action type to use for update actions */
6766 public static $ log_history_1_update = Log::HISTORY_UPDATE_RELATION ;
68- /** @var Log::HISTORY_* */
67+ /** @var Log::HISTORY_* The historical log entry action type to use for delete actions */
6968 public static $ log_history_1_delete = Log::HISTORY_DEL_RELATION ;
70- /** @var Log::HISTORY_* */
69+ /** @var Log::HISTORY_* The historical log entry action type to use for lock actions */
7170 public static $ log_history_1_lock = Log::HISTORY_LOCK_RELATION ;
72- /** @var Log::HISTORY_* */
71+ /** @var Log::HISTORY_* The historical log entry action type to use for unlock actions */
7372 public static $ log_history_1_unlock = Log::HISTORY_UNLOCK_RELATION ;
7473
7574 // Item 2 information
@@ -78,26 +77,25 @@ abstract class CommonDBRelation extends CommonDBConnexity
7877 public static $ itemtype_2 ; // Type ref or field name (must start with itemtype)
7978 /** @var ?string $items_id_2 */
8079 public static $ items_id_2 ; // Field name
81- // * entity inheritance
82- /** @var bool */
80+ /** @var bool If entity must be taken from item 2 */
8381 public static $ take_entity_2 = false ;
8482 // * rights
8583 /** @var CommonDBConnexity::DONT_CHECK_ITEM_RIGHTS|CommonDBConnexity::HAVE_VIEW_RIGHT_ON_ITEM|CommonDBConnexity::HAVE_SAME_RIGHT_ON_ITEM */
8684 public static $ checkItem_2_Rights = self ::HAVE_SAME_RIGHT_ON_ITEM ;
87- /** @var bool */
85+ /** @var bool If item 2 must be attached to the relation */
8886 public static $ mustBeAttached_2 = true ;
8987 // * log
90- /** @var bool */
88+ /** @var bool If historical logs must be done for item 2 */
9189 public static $ logs_for_item_2 = true ;
92- /** @var Log::HISTORY_* */
90+ /** @var Log::HISTORY_* The historical log entry action type to use for add actions */
9391 public static $ log_history_2_add = Log::HISTORY_ADD_RELATION ;
94- /** @var Log::HISTORY_* */
92+ /** @var Log::HISTORY_* The historical log entry action type to use for update actions */
9593 public static $ log_history_2_update = Log::HISTORY_UPDATE_RELATION ;
96- /** @var Log::HISTORY_* */
94+ /** @var Log::HISTORY_* The historical log entry action type to use for delete actions */
9795 public static $ log_history_2_delete = Log::HISTORY_DEL_RELATION ;
98- /** @var Log::HISTORY_* */
96+ /** @var Log::HISTORY_* The historical log entry action type to use for lock actions */
9997 public static $ log_history_2_lock = Log::HISTORY_LOCK_RELATION ;
100- /** @var Log::HISTORY_* */
98+ /** @var Log::HISTORY_* The historical log entry action type to use for unlock actions */
10199 public static $ log_history_2_unlock = Log::HISTORY_UNLOCK_RELATION ;
102100
103101 // Relation between items to check
0 commit comments