public function getID($hideAutoID = true) { if ($hideAutoID) { return $this->_flags & self::IS_ID_SET ? $this->_id : ''; } else { return $this->_id; } }