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 QTypeTable

Used by the QCubed Code Generator to describe a database Type Table "Type" tables must be defined with at least two columns, the first one being an integer-based primary key, and the second one being the name of the type.

QBaseClass
Extended by QTypeTable
Package: Codegen
Located at includes/codegen/QTypeTable.class.php
Methods summary
public QTypeTable
# __construct( string $strName )

Default Constructor. Simply sets up the TableName.

Default Constructor. Simply sets up the TableName.

Parameters

$strName
Name of the Table

Returns

QTypeTable
public static string
# Literal( $mixColValue )

Returns the string that will be used to represent the literal value given when codegenning a type table

Returns the string that will be used to represent the literal value given when codegenning a type table

Parameters

$mixColValue

Returns

string
public mixed
# __get( string $strName )

Override method to perform a property "Get" This will get the value of $strName

Override method to perform a property "Get" This will get the value of $strName

Parameters

$strName
Name of the property to get

Returns

mixed

Throws

Exception
QCallerException

Overrides

QBaseClass::__get()
public mixed
# __set( string $strName, string $mixValue )

Override method to perform a property "Set" This will set the property $strName to be $mixValue

Override method to perform a property "Set" This will set the property $strName to be $mixValue

Parameters

$strName
Name of the property to set
$mixValue
New value of the property

Returns

mixed

Throws

Exception
QCallerException

Overrides

QBaseClass::__set()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Properties summary
protected string $strName

Name of the table (as defined in the database)

Name of the table (as defined in the database)

#
protected string $strClassName

Name as a PHP Class

Name as a PHP Class

#
protected string[] $strNameArray

Array of Type Names (as entered into the rows of this database table) This is indexed by integer which represents the ID in the database, starting with 1

Array of Type Names (as entered into the rows of this database table) This is indexed by integer which represents the ID in the database, starting with 1

#
protected $strExtraFieldNamesArray

Column names for extra properties (beyond the 2 basic columns), if any.

Column names for extra properties (beyond the 2 basic columns), if any.

#
protected $arrExtraPropertyArray

Array of extra properties. This is a double-array - array of arrays. Example: 1 => ['col1' => 'valueA', 'col2 => 'valueB'], 2 => ['col1' => 'valueC', 'col2 => 'valueD'], 3 => ['col1' => 'valueC', 'col2 => 'valueD']

Array of extra properties. This is a double-array - array of arrays. Example: 1 => ['col1' => 'valueA', 'col2 => 'valueB'], 2 => ['col1' => 'valueC', 'col2 => 'valueD'], 3 => ['col1' => 'valueC', 'col2 => 'valueD']

#
protected string[] $strTokenArray

Array of Type Names converted into Tokens (can be used as PHP Constants) This is indexed by integer which represents the ID in the database, starting with 1

Array of Type Names converted into Tokens (can be used as PHP Constants) This is indexed by integer which represents the ID in the database, starting with 1

#
protected $objKeyColumn
#
protected $objManyToManyReferenceArray
#
Magic properties summary
public string $Name
public string $ClassName
public array $ExtraPropertyArray
public write-only QSqlColumn $KeyColumn
API documentation generated by ApiGen