Extrafields: Difference between revisions

Jump to navigation Jump to search
Line 25: Line 25:
)
)


[[Display page have to include :]]
==Display page have to include :==
<source lang="php">
<source lang="php">
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
</source>
</source>


[[Load extrafield array in object :]]
==Load extrafield array in object :==
<source lang="php">
<source lang="php">
$extrafields = new ExtraFields($db);
$extrafields = new ExtraFields($db);
Line 36: Line 36:
</source>
</source>


[[Load extrafield into object :]]
==Load extrafield into object :==
<source lang="php">
<source lang="php">
''$object''->fetch($rowid);
''$object''->fetch($rowid);
Line 47: Line 47:
</source>
</source>


[[Inside edit page to display extrafields :]]
==Inside edit page to display extrafields :==
<source lang="php">
<source lang="php">
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
Line 56: Line 56:
</source>
</source>


[[Inside view page to display extrafields :]]
==Inside view page to display extrafields :==
<source lang="php">
<source lang="php">
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
Bureaucrats, emailconfirmed, Administrators
825

edits

Navigation menu