[ 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/builder/om/ -> OMBuilder.php (sommaire)

Baseclass for OM-building classes. OM-building classes are those that build a PHP (or other) class to service a single table.  This includes Peer classes, Entity classes, Map classes, Node classes, etc.

Author: Hans Lellelid <hans@xmpl.org>
Poids: 409 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 23 fonctions

  getPeerBuilder()
  getStubPeerBuilder()
  getObjectBuilder()
  getStubObjectBuilder()
  getMapBuilderBuilder()
  getInterfaceBuilder()
  getMultiExtendObjectBuilder()
  getNodeBuilder()
  getNodePeerBuilder()
  getStubNodeBuilder()
  getStubNodePeerBuilder()
  getNewPeerBuilder()
  getNewObjectBuilder()
  build()
  getClasspath()
  getClassFilePath()
  getPackage()
  getPackagePath()
  getPeerClassname()
  getObjectClassname()
  getColumnConstant()
  classname()
  getBasePeer()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getPeerBuilder()   X-Ref
Returns new or existing Peer builder class for this table.

return: DataModelBuilder

getStubPeerBuilder()   X-Ref
Returns new or existing stub Peer builder class for this table.

return: DataModelBuilder

getObjectBuilder()   X-Ref
Returns new or existing Object builder class for this table.

return: DataModelBuilder

getStubObjectBuilder()   X-Ref
Returns new or existing stub Object builder class for this table.

return: DataModelBuilder

getMapBuilderBuilder()   X-Ref
Returns new or existing MapBuilder builder class for this table.

return: DataModelBuilder

getInterfaceBuilder()   X-Ref
Returns new or existing stub Interface builder class for this table.

return: DataModelBuilder

getMultiExtendObjectBuilder()   X-Ref
Returns new or existing stub child object builder class for this table.

return: DataModelBuilder

getNodeBuilder()   X-Ref
Returns new or existing node Object builder class for this table.

return: DataModelBuilder

getNodePeerBuilder()   X-Ref
Returns new or existing node Peer builder class for this table.

return: DataModelBuilder

getStubNodeBuilder()   X-Ref
Returns new or existing stub node Object builder class for this table.

return: DataModelBuilder

getStubNodePeerBuilder()   X-Ref
Returns new or existing stub node Peer builder class for this table.

return: DataModelBuilder

getNewPeerBuilder(Table $table)   X-Ref
Convenience method to return a NEW Peer class builder instance.
This is used very frequently from the peer and object builders to get
a peer builder for a RELATED table.

param: Table $table
return: PeerBuilder

getNewObjectBuilder(Table $table)   X-Ref
Convenience method to return a NEW Object class builder instance.
This is used very frequently from the peer and object builders to get
an object builder for a RELATED table.

param: Table $table
return: ObjectBuilder

build()   X-Ref
Builds the PHP source for current class and returns it as a string.

This is the main entry point and defines a basic structure that classes should follow.
In most cases this method will not need to be overridden by subclasses.  This method
does assume that the output language is PHP code, so it will need to be overridden if
this is not the case.

return: string The resulting PHP sourcecode.

getClasspath()   X-Ref
Gets the dot-path representation of current class being built.

return: string

getClassFilePath()   X-Ref
Gets the full path to the file for the current class.

return: string

getPackage()   X-Ref
Gets package name for this table.
This is overridden by child classes that have different packages.

return: string

getPackagePath()   X-Ref
Returns filesystem path for current package.

return: string

getPeerClassname()   X-Ref
Shortcut method to return the [stub] peer classname for current table.
This is the classname that is used whenever object or peer classes want
to invoke methods of the peer classes.

return: string (e.g. 'MyPeer')

getObjectClassname()   X-Ref
Returns the object classname for current table.
This is the classname that is used whenever object or peer classes want
to invoke methods of the object classes.

return: string (e.g. 'My')

getColumnConstant($col, $phpName = null)   X-Ref
Get the column constant name (e.g. PeerName::COLUMN_NAME).

param: Column $col The column we need a name for.
param: string $phpName The PHP Name of the peer class. The 'Peer' is appended automatically.
return: string If $phpName is provided, then will return {$phpName}Peer::COLUMN_NAME; if not, then uses current table COLUMN_NAME.

classname($qualifiedName)   X-Ref
Gets just classname, given a dot-path to class.

param: string $qualifiedName
return: string

getBasePeer(Table $table)   X-Ref
Gets the basePeer path if specified for table/db.
If not, will return 'propel.util.BasePeer'

return: string



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