/** * Returns the column name that should be used * to store and retrieve the primary key ID. * * @param string $type type of bean to get ID Field for * * @return string $idfieldtobeused ID field to be used for this type of bean */ public function getIDField($type) { $nArgs = func_num_args(); if ($nArgs > 1) { throw new Exception("Deprecated parameter SAFE, use safeColumn() instead."); } return $this->tableFormatter->formatBeanID($type); }
/** * Returns the column name that should be used * to store and retrieve the primary key ID. * * @param string $type type of bean to get ID Field for * * @return string $idfieldtobeused ID field to be used for this type of bean */ public function getIDField( $type ) { $nArgs = func_num_args(); if ($nArgs>1) $safe = func_get_arg(1); else $safe = false; if ($this->tableFormatter) return $this->tableFormatter->formatBeanID($type); return $safe ? $this->safeColumn($this->idfield) : $this->idfield; }