Fix: Restore private: The public method to use by external code is

addExtraField.
This commit is contained in:
Laurent Destailleur 2012-10-24 21:28:24 +02:00
parent 1b116c05ef
commit 773b082b13

View File

@ -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 int $type Type of attribute ('int', 'text', 'varchar', 'date', 'datehour')
@ -118,7 +119,7 @@ class ExtraFields
* @param int $unique Is field unique or not
* @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='';
if ($elementtype == 'member') $table='adherent_extrafields';