public function __construct($oRefAttribute, $sSuffix = '') { // In this very specific case, the code is the one of the attribute // (this to get a very very simple syntax upon declaration) $aParam = array(); $aParam["refattribute"] = $oRefAttribute; parent::__construct($oRefAttribute->GetCode() . $sSuffix, $aParam); }