Merge pull request #12295 from frederic34/actioncomm_doxygen

doxygen for actioncomm class
This commit is contained in:
Laurent Destailleur 2019-11-02 11:37:30 +01:00 committed by GitHub
commit 3943cb18c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,43 +45,67 @@ class ActionComm extends CommonObject
*/ */
public $table_element = 'actioncomm'; public $table_element = 'actioncomm';
/**
* @var string Name of id column
*/
public $table_rowid = 'id'; public $table_rowid = 'id';
/** /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png * @var string Name of icon for actioncomm object. Filename of icon is object_action.png
*/ */
public $picto = 'action'; public $picto = 'action';
/** /**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe * @var int 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
* @var int
*/ */
public $ismultientitymanaged = 1; public $ismultientitymanaged = 1;
/** /**
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user, 2=Same than 1 but accept record if fksoc is empty * @var integer 0=Default
* @var integer * 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
* 2=Same than 1 but accept record if fksoc is empty
*/ */
public $restrictiononfksoc = 2; public $restrictiononfksoc = 2;
/** /**
* Id of the event * @var int Id of the event
* @var int
*/ */
public $id; public $id;
/** /**
* Id of the event. Use $id as possible * @var int Id of the event. Use $id as possible
* @var int
*/ */
public $ref; public $ref;
public $type_id; // Id into parent table llx_c_actioncomm (used only if option to use type is set) /**
public $type_code; // Code into parent table llx_c_actioncomm (used only if option to use type is set). With default setup, should be AC_OTH_AUTO or AC_OTH. * @var int Id into parent table llx_c_actioncomm (used only if option to use type is set)
*/
public $type_id;
/**
* @var string Code into parent table llx_c_actioncomm (used only if option to use type is set). With default setup, should be AC_OTH_AUTO or AC_OTH.
*/
public $type_code;
/**
* @var string Type label
*/
public $type_label; public $type_label;
public $type; // Label into parent table llx_c_actioncomm (used only if option to use type is set)
public $type_color; // Color into parent table llx_c_actioncomm (used only if option to use type is set) /**
public $code; // Free code to identify action. Ie: Agenda trigger add here AC_TRIGGERNAME ('AC_COMPANY_CREATE', 'AC_PROPAL_VALIDATE', ...) * @var string Label into parent table llx_c_actioncomm (used only if option to use type is set)
*/
public $type;
/**
* @var string Color into parent table llx_c_actioncomm (used only if option to use type is set)
*/
public $type_color;
/**
* @var string Free code to identify action. Ie: Agenda trigger add here AC_TRIGGERNAME ('AC_COMPANY_CREATE', 'AC_PROPAL_VALIDATE', ...)
*/
public $code;
/** /**
* @var string Agenda event label * @var string Agenda event label
@ -89,72 +113,56 @@ class ActionComm extends CommonObject
public $label; public $label;
/** /**
* Date creation record (datec) * @var integer Date creation record (datec)
*
* @var integer
*/ */
public $datec; public $datec;
/** /**
* Date end record (datef) * @var integer Date end record (datef)
*
* @var integer
*/ */
public $datef; public $datef;
/** /**
* Duration (duree) * @var integer Duration (duree)
*
* @var integer
*/ */
public $duree; public $duree;
/** /**
* Date modification record (tms) * @var integer Date modification record (tms)
*
* @var integer
*/ */
public $datem; public $datem;
/** /**
* Object user that create action * @var User Object user that create action
* @var User
* @deprecated * @deprecated
* @see $authorid * @see $authorid
*/ */
public $author; public $author;
/** /**
* Object user that modified action * @var User Object user that modified action
* @var User
* @deprecated * @deprecated
* @see $usermodid * @see $usermodid
*/ */
public $usermod; public $usermod;
/** /**
* Id user that create action * @var int Id user that create action
* @var int
*/ */
public $authorid; public $authorid;
/** /**
* Id user that modified action * @var int Id user that modified action
* @var int
*/ */
public $usermodid; public $usermodid;
/** /**
* Date action start (datep) * @var integer Date action start (datep)
*
* @var integer
*/ */
public $datep; public $datep;
/** /**
* Date action end (datep2) * @var integer Date action end (datep2)
*
* @var integer
*/ */
public $datep2; public $datep2;
@ -163,90 +171,178 @@ class ActionComm extends CommonObject
* @deprecated * @deprecated
*/ */
public $durationp = -1; public $durationp = -1;
public $fulldayevent = 0; // 1=Event on full day
/** /**
* Milestone * @var int 1=Event on full day
* @var int */
public $fulldayevent = 0;
/**
* @var int Milestone
* @deprecated Milestone is already event with end date = start date * @deprecated Milestone is already event with end date = start date
*/ */
public $punctual = 1; public $punctual = 1;
public $percentage; // Percentage
public $location; // Location
public $transparency; // Transparency (ical standard). Used to say if people assigned to event are busy or not by event. 0=available, 1=busy, 2=busy (refused events) /**
public $priority; // Small int (0 By default) * @var integer Percentage
*/
public $percentage;
public $userassigned = array(); // Array of user ids /**
public $userownerid; // Id of user owner = fk_user_action into table * @var string Location
public $userdoneid; // Id of user done (deprecated) */
public $location;
public $socpeopleassigned = array(); // Array of contact ids /**
* @var int Transparency (ical standard). Used to say if people assigned to event are busy or not by event. 0=available, 1=busy, 2=busy (refused events)
*/
public $transparency;
public $otherassigned = array(); // Array of other contact emails (not user, not contact) /**
* @var int (0 By default)
*/
public $priority;
/**
* @var int[] Array of user ids
*/
public $userassigned = array();
/**
* @var int Id of user owner = fk_user_action into table
*/
public $userownerid;
/**
* @var int Id of user done (deprecated)
* @deprecated
*/
public $userdoneid;
/**
* @var int[] Array of contact ids
*/
public $socpeopleassigned = array();
/**
* @var int[] Array of other contact emails (not user, not contact)
*/
public $otherassigned = array();
/** /**
* Object user of owner * @var User Object user of owner
* @var User
* @deprecated * @deprecated
* @see userownerid * @see userownerid
*/ */
public $usertodo; public $usertodo;
/** /**
* Object user that did action * @var User Object user that did action
* @var User
* @deprecated * @deprecated
* @see userdoneid * @see userdoneid
*/ */
public $userdone; public $userdone;
/**
* @var int thirdparty id linked to action
*/
public $socid; public $socid;
/**
* @var int socpeople id linked to action
*/
public $contactid; public $contactid;
/** /**
* Company linked to action (optional) * @var Societe|null Company linked to action (optional)
* @var Societe|null
* @deprecated * @deprecated
* @see socid * @see socid
*/ */
public $societe; public $societe;
/** /**
* Contact linked to action (optional) * @var Contact|null Contact linked to action (optional)
* @var Contact|null
* @deprecated * @deprecated
* @see contactid * @see contactid
*/ */
public $contact; public $contact;
// Properties for links to other objects // Properties for links to other objects
/**
* @var int Id of linked object
*/
public $fk_element; // Id of record public $fk_element; // Id of record
public $elementid; // Id of record alternative for API
public $elementtype; // Type of record. This if property ->element of object linked to.
// Ical /**
* @var int Id of record alternative for API
*/
public $elementid;
/**
* @var string Type of record. This if property ->element of object linked to.
*/
public $elementtype;
/**
* @var string Ical name
*/
public $icalname; public $icalname;
/**
* @var string Ical color
*/
public $icalcolor; public $icalcolor;
/**
* @var array Actions
*/
public $actions=array(); public $actions=array();
// Fields for emails /**
* @var string Email msgid
*/
public $email_msgid; public $email_msgid;
/**
* @var string Email from
*/
public $email_from; public $email_from;
/**
* @var string Email sender
*/
public $email_sender; public $email_sender;
/**
* @var string Email to
*/
public $email_to; public $email_to;
/**
* @var string Email tocc
*/
public $email_tocc; public $email_tocc;
/**
* @var string Email tobcc
*/
public $email_tobcc; public $email_tobcc;
/**
* @var string Email subject
*/
public $email_subject; public $email_subject;
/**
* @var string Email errors to
*/
public $errors_to; public $errors_to;
/** /**
* Constructor * Constructor
* *
* @param DoliDB $db Database handler * @param DoliDB $db Database handler
*/ */
public function __construct(DoliDB $db) public function __construct(DoliDB $db)
{ {