protected function getUniqueIDtag($type) { $tag = ""; if (isset($this->dbid[$type]) && is_array($this->dbid[$type])) { $res = array_keys($this->dbid[$type]); $tag = $res[0]; } return (string) $tag; }