Пример #1
0
 public static function assembleDatabaseColumnName($maximumLength, $elementName, $subElementName = NULL, $elementPropertyName = NULL)
 {
     $databaseColumnName = ReferencePathHelper::generateDatabaseColumnName($elementName);
     if (isset($subElementName)) {
         $databaseColumnName .= self::$COLUMN_NAME_DELIMITER__DATABASE . strtolower($subElementName);
     }
     if (isset($elementPropertyName)) {
         $databaseColumnName .= self::$COLUMN_NAME_DELIMITER__DATABASE . strtolower($elementPropertyName);
     }
     return ParameterNameTruncater::truncateParameterName($databaseColumnName, $maximumLength);
 }
Пример #2
0
 public static function assembleDatabaseColumnName($maximumLength, $reference)
 {
     $databaseColumnName = self::generateDatabaseColumnName($reference);
     return ParameterNameTruncater::truncateParameterName($databaseColumnName, $maximumLength);
 }