[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/classes/propel/engine/database/model/ -> Domain.php (sommaire)

(pas de description)

Poids: 313 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Domain:: (25 méthodes):
  __construct()
  copy()
  setupObject()
  setDatabase()
  getDatabase()
  getDescription()
  setDescription()
  getName()
  setName()
  getScale()
  setScale()
  replaceScale()
  getSize()
  setSize()
  replaceSize()
  getType()
  setType()
  replaceType()
  getDefaultValue()
  getPhpDefaultValue()
  setDefaultValue()
  replaceDefaultValue()
  getSqlType()
  setSqlType()
  printSize()


Classe: Domain  - X-Ref

A Class for holding data about a column used in an Application.

__construct($type = null, $sqlType = null, $size = null, $scale = null)   X-Ref
Creates a new Domain object.
If this domain needs a name, it must be specified manually.

param: string $type Propel type.
param: string $sqlType SQL type.
param: string $size
param: string $scale

copy(Domain $domain)   X-Ref
Pas de description

setupObject()   X-Ref
Sets up the Domain object based on the attributes that were passed to loadFromXML().


setDatabase(Database $database)   X-Ref
Sets the owning database object (if this domain is being setup via XML).


getDatabase()   X-Ref
Gets the owning database object (if this domain was setup via XML).


getDescription()   X-Ref

return: Returns the description.

setDescription($description)   X-Ref

param: description The description to set.

getName()   X-Ref

return: Returns the name.

setName($name)   X-Ref

param: name The name to set.

getScale()   X-Ref

return: Returns the scale.

setScale($scale)   X-Ref

param: scale The scale to set.

replaceScale($value)   X-Ref
Replaces the size if the new value is not null.

param: value The size to set.

getSize()   X-Ref

return: Returns the size.

setSize($size)   X-Ref

param: size The size to set.

replaceSize($value)   X-Ref
Replaces the size if the new value is not null.

param: value The size to set.

getType()   X-Ref

return: string Returns the propelType.

setType($propelType)   X-Ref

param: string $propelType The PropelTypes type to set.

replaceType($value)   X-Ref
Replaces the default value if the new value is not null.

param: value The defaultValue to set.

getDefaultValue()   X-Ref
Gets the "raw" default value, suitable for use in SQL.

return: string Returns the defaultValue.

getPhpDefaultValue()   X-Ref
Gets the default value, type-casted for use in PHP OM.

return: mixed

setDefaultValue($defaultValue)   X-Ref

param: defaultValue The defaultValue to set.

replaceDefaultValue($value)   X-Ref
Replaces the default value if the new value is not null.

param: string $value The defaultValue to set.

getSqlType()   X-Ref

return: Returns the sqlType.

setSqlType($sqlType)   X-Ref

param: string $sqlType The sqlType to set.

printSize()   X-Ref
Return the size and scale in brackets for use in an sql schema.

return: size and scale or an empty String if there are no values



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7