23 include_once DOL_DOCUMENT_ROOT.
'/societe/canvas/actions_card_common.class.php';
42 public function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
45 $this->dirmodule = $dirmodule;
46 $this->targetmodule = $targetmodule;
47 $this->canvas = $canvas;
64 if ($action ==
'view') $out .= $langs->trans(
"Individual");
65 if ($action ==
'edit') $out .= $langs->trans(
"EditCompany");
66 if ($action ==
'create') $out .= $langs->trans(
"NewCompany");
84 $return = parent::doActions($action);
101 global $conf, $langs;
102 global $form, $formcompany;
106 parent::assign_values($action);
110 if ($action ==
'create' || $action ==
'edit')
112 $this->tpl[
'select_civility'] = $formcompany->select_civility(
GETPOST(
'civility_id'));
115 if ($action ==
'delete' || $conf->use_javascript_ajax)
117 $this->tpl[
'action_delete'] = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
"?socid=".$this->object->id, $langs->trans(
"DeleteAnIndividual"), $langs->trans(
"ConfirmDeleteIndividual"),
"confirm_delete",
'', 0,
"1,action-delete");
135 public function restrictedArea($user, $features =
'societe', $objectid = 0, $dbtablename =
'', $feature2 =
'', $dbt_keyfield =
'fk_soc', $dbt_select =
'rowid')
137 return restrictedArea($user, $features, $objectid, $dbtablename, $feature2, $dbt_keyfield, $dbt_select);
__construct($db, $dirmodule, $targetmodule, $canvas, $card)
Constructor.
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Classe permettant la gestion des tiers par defaut.
restrictedArea($user, $features= 'societe', $objectid=0, $dbtablename= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid')
Check permissions of a user to show a page and an object.
$conf db
API class for accounts.
doActions(&$action, $id)
Execute actions.
getTitle($action)
Return the title of card.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
assign_values(&$action, $id=0, $ref= '')
Assign custom values for canvas (for example into this->tpl to be used by templates) ...
print $_SERVER["PHP_SELF"]
Edit parameters.
getObject($id, $ref= '')
Get object from id or ref and save it into this->object.