public static function generateDatasetName() { $sequenceName = 'dataset.name'; $datasetSuffixId = Sequence::getNextSequenceValue($sequenceName); $datasetSuffix = str_pad(base_convert($datasetSuffixId, 10, 36), self::$LENGTH_NAME__DATASET, '0', STR_PAD_LEFT); return self::$PREFIX_NAME__DATASET . $datasetSuffix; }
protected function getRequestId() { $requestId = &drupal_static(__CLASS__ . '::requestId'); if (!isset($requestId)) { $sequenceName = NameSpaceHelper::addNameSpace(get_class($this), 'requestId'); $requestId = Sequence::getNextSequenceValue($sequenceName); } return $requestId; }