Extrafields: Difference between revisions

Jump to navigation Jump to search
Line 60: Line 60:
{
{
       print ''$object''->showOptionals($extrafields);
       print ''$object''->showOptionals($extrafields);
}
</source>
==After fetch method of this object :==
<source lang="php">
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
$extrafields=new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label('company',true);
if (count($extralabels)>0) {
$this->array_options = array();
}
foreach($extrafields->attribute_label as $key=>$label)
{
$this->array_options['options_'.$key]=$label;
}
}
</source>
</source>
Bureaucrats, emailconfirmed, Administrators
825

edits

Navigation menu