Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • JqControlGen
  • QCodeGen
  • QCodeGenBase
  • QConvertNotation
  • QConvertNotationBase
  • QDatabaseCodeGen
  • QIndex
  • QManyToManyReference
  • QReference
  • QRestServiceCodeGen
  • QReverseReference
  • QSqlColumn
  • QSqlTable
  • QTypeTable
  • Overview
  • Package
  • Class

Class QConvertNotationBase

Class QConvertNotationBase: Helps convert notations from entities

Direct known subclasses

QConvertNotation
Abstract
Package: Codegen
Located at includes/codegen/QConvertNotationBase.class.php
Methods summary
public static string
# PrefixFromType( string $strType )

Returns prefix for variable according to variable type

Returns prefix for variable according to variable type

Parameters

$strType
The type of variable for which the prefix is needed

Returns

string
The variable prefix
public static string
# WordsFromUnderscore( string $strName )

Replaces underscores with spaces and makes the first character of all the words as uppercase

Replaces underscores with spaces and makes the first character of all the words as uppercase

Parameters

$strName
String which has to be converted into single words

Returns

string
The resulting string (as words)
public static string
# CamelCaseFromUnderscore( string $strName )

Converts a underscored word into a CamelCased word

Converts a underscored word into a CamelCased word

Parameters

$strName
String to be converted

Returns

string
The resulting camel-cased word
public static string
# WordsFromCamelCase( string $strName )

Converts a CamelCased word into separate words

Converts a CamelCased word into separate words

Parameters

$strName
String to be converted

Returns

string
Resulting set of words derived from camel case
public static string
# UnderscoreFromCamelCase( string $strName )

Given a CamelCased word, returns the underscored version example: CamelCased word: WeightInGrams underscored word: weight_in_grams

Given a CamelCased word, returns the underscored version example: CamelCased word: WeightInGrams underscored word: weight_in_grams

Parameters

$strName
CamelCased word

Returns

string
Underscored word
public static string
# JavaCaseFromUnderscore( string $strName )

Returns a javaCase word given an underscore word example: underscore word: weight_in_grams javaCase word: weightInGrams

Returns a javaCase word given an underscore word example: underscore word: weight_in_grams javaCase word: weightInGrams

javaCase words are like camel case words, except that the first character is lower case

Parameters

$strName
The underscored word

Returns

string
The word in javaCase
API documentation generated by ApiGen