Fix: Restore private: The public method to use by external code is
addExtraField.
This commit is contained in:
parent
1b116c05ef
commit
773b082b13
@ -109,7 +109,8 @@ class ExtraFields
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new optionnal attribute
|
* Add a new optionnal attribute.
|
||||||
|
* This is a private method. For public method, use addExtraField.
|
||||||
*
|
*
|
||||||
* @param string $attrname code of attribute
|
* @param string $attrname code of attribute
|
||||||
* @param int $type Type of attribute ('int', 'text', 'varchar', 'date', 'datehour')
|
* @param int $type Type of attribute ('int', 'text', 'varchar', 'date', 'datehour')
|
||||||
@ -118,7 +119,7 @@ class ExtraFields
|
|||||||
* @param int $unique Is field unique or not
|
* @param int $unique Is field unique or not
|
||||||
* @return int <=0 if KO, >0 if OK
|
* @return int <=0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function create($attrname, $type='varchar', $length=255, $elementtype='member', $unique=0)
|
private function create($attrname, $type='varchar', $length=255, $elementtype='member', $unique=0)
|
||||||
{
|
{
|
||||||
$table='';
|
$table='';
|
||||||
if ($elementtype == 'member') $table='adherent_extrafields';
|
if ($elementtype == 'member') $table='adherent_extrafields';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user