| [ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
Base static class for performing query and update operations on the '<?php echo $table->getName() ?>' table.
| Poids: | 1780 lignes (62 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| DATABASE_NAME() X-Ref |
| Pas de description |
| TABLE_NAME() X-Ref |
| Pas de description |
| numColumns() X-Ref |
| Pas de description |
| numLazyLoadColumns() X-Ref |
| Pas de description |
| CLASS_DEFAULT() X-Ref |
| Pas de description |
| getPhpNameMap() X-Ref |
| CLASSKEY_(function CLASSNAME_<?php echo strtoupper($child->getKey() X-Ref |
| Pas de description |
| alias($alias, $column) X-Ref |
| Convenience method which changes table.column to alias.column. Using this method you can maintain SQL abstraction while using column aliases. <code> $c->addAlias("alias1", TablePeer::TABLE_NAME); $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN); </code> param: string $alias The alias for the current table. param: string $column The column name for current table. (i.e. <?php echo $table->getPhpName() ?>Peer::COLUMN_NAME). return: string |
| addSelectColumns( &$criteria) X-Ref |
| Add all the columns needed to create a new object. Note: any columns that were marked with lazyLoad="true" in the XML schema will not be added to the select list and only loaded on demand. param: criteria object containing the columns to add. |
| COUNT() X-Ref |
| Pas de description |
| COUNT_DISTINCT() X-Ref |
| Pas de description |
| doCount( $criteria, $distinct = false, $con = null) X-Ref |
| Returns the number of rows matching criteria. param: Criteria $criteria a <code>Criteria</code> object. param: boolean $distinct Whether to select only distinct columns. param: Connection $con An optional Connection object. return: int Number of matching rows. |
| getOMClass( &$rs, $colnum) X-Ref |
| Pas de description |
| getOMClass() X-Ref |
| The class that the Peer will make instances of. If the BO is abstract then you must implement this method in the BO. |
| doInsert(&$values, $con = null) X-Ref |
| Method to do inserts. This method is to be used during a transaction, otherwise use the doInsert(Criteria) method. It will take care of the connection details internally. param: mixed $values Criteria or <?php echo $table->getPhpName() ?> object containing data param: Connection $con The connection to use return: mixed The new primary key. |
| doUpdate(&$values, $con = null) X-Ref |
| Method perform an UPDATE on the database, given a <?php echo $table->getPhpName() ?> or Criteria object. param: mixed $values Criteria or <?php echo $table->getPhpName() ?> object containing data that is used to create the UPDATE statement. param: Connection $con The connection to use. return: mixed number of affected rows on success, any exceptions returned during processing |
| doDeleteAll($con = null) X-Ref |
| Method to DELETE all rows from the <?php echo $table->getName() ?> table. <b>Note</b>: If you want to pass a Connection object as reference, use Param::set() : <code> $con =& Propel::getConnection(); $e = BasePeer::doDeleteAll(Param::set($con)); </code> return: mixed number of affected rows on success, PropelException on failure. |
| doDelete(&$values, $con = null) X-Ref |
| Method perform a DELETE on the database, given a <?php echo $table->getPhpName() ?> or Criteria object OR a primary key value. param: mixed $values Criteria or <?php echo $table->getPhpName() ?> object containing data that is used to create the DELETE statement. param: Connection $con the connection to use return: mixed number of affected rows on success, any exception returned during processing wrapped into a PropelException on failure. |
| doOnDeleteCascade( $criteria, &$con) X-Ref |
| This is a method for emulating ON DELETE CASCADE for DBs that don't support this feature (like MySQL or SQLite). This method is not very speedy because it must perform a query first to get the implicated records and then perform the deletes by calling those Peer classes. This method should be used within a transaction if possible. param: Criteria $criteria param: Connection $con return: number of affected rows on success, PropelException on failure. |
| doOnDeleteSetNull( $criteria, &$con) X-Ref |
| This is a method for emulating ON DELETE SET NULL DBs that don't support this feature (like MySQL or SQLite). This method is not very speedy because it must perform a query first to get the implicated records and then perform the deletes by calling those Peer classes. This method should be used within a transaction if possible. param: Criteria $criteria param: Connection $con return: mixed number of affected rows on success, PropelException on failure. |
| doValidate(&$obj, $cols = null) X-Ref |
| Validates all modified columns of given <?php echo $table->getPhpName()?> object. If parameter $columns is either a single column name or an array of column names than only those columns are validated. NOTICE: This does not apply to primary or foreign keys for now. param: <?php echo $table->getPhpName()?> $obj The object to validate. param: mixed $cols Column name or array of column names. return: mixed TRUE if all columns are valid or the error message of the first invalid column. |
| buildCriteria(&$obj) X-Ref |
| Build a Criteria object from the data object for this peer or from primary key(s). param: mixed $obj <?php echo $table->getPhpName() ?> object or <?php if (count($table->getPrimaryKey()) == 1) { ?>scalar primary key<?php } else { ?>array primary keys<?php } ?>. return: Criteria The compiled Criteria object. |
| doSelectJoinAll( &$c, $con = null) X-Ref |
| Pas de description |
| doSelectJoinAllExcept({Propel::assertParam($con, '<?php echo $CLASS; ?>', 'doSelectJoinAllExcept<?php echo $excludeString; ?>', 2) X-Ref |
| Selects a collection of <?php echo $className ?> objects pre-filled with all related objects except <?php echo $excludeString ?>. return: array Array of <?php echo $className ?> objects. |
| Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |