public function currval($type = null) {
		$result = $this->getByType('currval');
		if (!empty($type)) {
			return $result[$type];
		}
		return $result;
	}
public function currval($type = null) {
		$result = $this->getByType('currval');
		if (!empty($type)) {
			return $result[$type];
		}
		return $result;
	}
public function currval ( $ type = null ) { $ result = $ this -> getByType ( 'currval' ) ; if ( ! empty ( $ type ) ) { return $ result [ $ type ] ; } return $ result ; }
Get current sequence value

@param string|null $type
simple
advanced
@return type
Get current sequence value