[ 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/ -> ObjectBuilder.php (sommaire)

Base class for Peer-building classes. This class is designed so that it can be extended by a PHP4PeerBuilder in addition to the "standard" PHP5PeerBuilder and PHP5ComplexOMPeerBuilder.  Hence, this class should not have any actual template code in it -- simply basic logic & utility methods.

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

Définit 7 fonctions

  __construct()
  addColumnAccessorMethods()
  addColumnMutatorMethods()
  getBaseClass()
  getInterface()
  isAddGenericMutators()
  isAddGenericAccessors()

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

__construct(Table $table)   X-Ref
Constructs a new PeerBuilder subclass.


addColumnAccessorMethods(&$script)   X-Ref
Adds the getter methods for the column values.
This is here because it is probably generic enough to apply to templates being generated
in different langauges (e.g. PHP4 and PHP5).

param: string &$script The script will be modified in this method.

addColumnMutatorMethods(&$script)   X-Ref
Adds the mutator (setter) methods for setting column values.
This is here because it is probably generic enough to apply to templates being generated
in different langauges (e.g. PHP4 and PHP5).

param: string &$script The script will be modified in this method.

getBaseClass()   X-Ref
Gets the baseClass path if specified for table/db.
If not, will return 'propel.om.BaseObject'

return: string

getInterface()   X-Ref
Gets the interface path if specified for current table.
If not, will return 'propel.om.Persistent'.

return: string

isAddGenericMutators()   X-Ref
Whether to add the generic mutator methods (setByName(), setByPosition(), fromArray()).
This is based on the build property propel.addGenericMutators, and also whether the
table is read-only or an alias.


isAddGenericAccessors()   X-Ref
Whether to add the generic accessor methods (getByName(), getByPosition(), toArray()).
This is based on the build property propel.addGenericAccessors, and also whether the
table is an alias.




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