rapila
Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Static Protected Attributes | List of all members
BasePagePeer Class Reference
Inheritance diagram for BasePagePeer:
PagePeer

Static Public Member Functions

static translateFieldName ($name, $fromType, $toType)
 
static getFieldNames ($type=BasePeer::TYPE_PHPNAME)
 
static alias ($alias, $column)
 
static addSelectColumns (Criteria $criteria, $alias=null)
 
static doCount (Criteria $criteria, $distinct=false, PropelPDO $con=null)
 
static doSelectOne (Criteria $criteria, PropelPDO $con=null)
 
static doSelect (Criteria $criteria, PropelPDO $con=null)
 
static doSelectStmt (Criteria $criteria, PropelPDO $con=null)
 
static addInstanceToPool ($obj, $key=null)
 
static removeInstanceFromPool ($value)
 
static getInstanceFromPool ($key)
 
static clearInstancePool ($and_clear_all_references=false)
 
static clearRelatedInstancePool ()
 
static getPrimaryKeyHashFromRow ($row, $startcol=0)
 
static getPrimaryKeyFromRow ($row, $startcol=0)
 
static populateObjects (PDOStatement $stmt)
 
static populateObject ($row, $startcol=0)
 
static doCountJoinUserRelatedByCreatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doCountJoinUserRelatedByUpdatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinUserRelatedByCreatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinUserRelatedByUpdatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doCountJoinAll (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinAll (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doCountJoinAllExceptPageRelatedByCanonicalId (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doCountJoinAllExceptUserRelatedByCreatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doCountJoinAllExceptUserRelatedByUpdatedBy (Criteria $criteria, $distinct=false, PropelPDO $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinAllExceptPageRelatedByCanonicalId (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinAllExceptUserRelatedByCreatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static doSelectJoinAllExceptUserRelatedByUpdatedBy (Criteria $criteria, $con=null, $join_behavior=Criteria::LEFT_JOIN)
 
static getTableMap ()
 
static buildTableMap ()
 
static getOMClass ($row=0, $colnum=0)
 
static doInsert ($values, PropelPDO $con=null)
 
static doUpdate ($values, PropelPDO $con=null)
 
static doDeleteAll (PropelPDO $con=null)
 
static doValidate ($obj, $cols=null)
 
static retrieveByPK ($pk, PropelPDO $con=null)
 
static retrieveByPKs ($pks, PropelPDO $con=null)
 
static doDelete ($values, PropelPDO $con=null)
 
static ignoreRights ($bIgnore=true)
 
static isIgnoringRights ()
 
static setRightsUser ($oUser=false)
 
static getRightsUser ($oUser=false)
 
static mayOperateOn ($oUser, $mObject, $sOperation)
 
static mayOperateOnOwn ($oUser, $mObject, $sOperation)
 
static retrieveRoot (PropelPDO $con=null)
 
static retrieveTree (Criteria $criteria=null, PropelPDO $con=null)
 
static isValid (Page $node=null)
 
static deleteTree (PropelPDO $con=null)
 
static shiftRLValues ($delta, $first, $last=null, PropelPDO $con=null)
 
static shiftLevel ($delta, $first, $last, PropelPDO $con=null)
 
static updateLoadedNodes ($prune=null, PropelPDO $con=null)
 
static makeRoomForLeaf ($left, $prune=null, PropelPDO $con=null)
 
static fixLevels (PropelPDO $con=null)
 
static setNegativeScope ($scope, PropelPDO $con=null)
 

Public Attributes

const DATABASE_NAME = 'rapila'
 
const TABLE_NAME = 'pages'
 
const OM_CLASS = 'Page'
 
const TM_CLASS = 'PageTableMap'
 
const NUM_COLUMNS = 17
 
const NUM_LAZY_LOAD_COLUMNS = 0
 
const NUM_HYDRATE_COLUMNS = 17
 
const ID = 'pages.id'
 
const NAME = 'pages.name'
 
const IDENTIFIER = 'pages.identifier'
 
const PAGE_TYPE = 'pages.page_type'
 
const TEMPLATE_NAME = 'pages.template_name'
 
const IS_INACTIVE = 'pages.is_inactive'
 
const IS_FOLDER = 'pages.is_folder'
 
const IS_HIDDEN = 'pages.is_hidden'
 
const IS_PROTECTED = 'pages.is_protected'
 
const CANONICAL_ID = 'pages.canonical_id'
 
const TREE_LEFT = 'pages.tree_left'
 
const TREE_RIGHT = 'pages.tree_right'
 
const TREE_LEVEL = 'pages.tree_level'
 
const CREATED_AT = 'pages.created_at'
 
const UPDATED_AT = 'pages.updated_at'
 
const CREATED_BY = 'pages.created_by'
 
const UPDATED_BY = 'pages.updated_by'
 
const DEFAULT_STRING_FORMAT = 'YAML'
 
const LEFT_COL = 'pages.tree_left'
 
const RIGHT_COL = 'pages.tree_right'
 
const LEVEL_COL = 'pages.tree_level'
 

Static Public Attributes

static $instances = array()
 

Static Protected Member Functions

static doOnDeleteCascade (Criteria $criteria, PropelPDO $con)
 
static doOnDeleteSetNull (Criteria $criteria, PropelPDO $con)
 

Static Protected Attributes

static $fieldNames
 
static $fieldKeys
 

Member Function Documentation

static BasePagePeer::addInstanceToPool (   $obj,
  $key = null 
)
static

Adds an object to the instance pool.

Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases – especially when you override doSelect*() methods in your stub classes – you may need to explicitly add objects to the cache in order to ensure that the same objects are always returned by doSelect*() and retrieveByPK*() calls.

Parameters
Page$objA Page object.
string$key(optional) key to use for instance map (for performance boost if key was already calculated externally).
static BasePagePeer::addSelectColumns ( Criteria  $criteria,
  $alias = null 
)
static

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.

Parameters
Criteria$criteriaobject containing the columns to add.
string$aliasoptional table alias
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::alias (   $alias,
  $column 
)
static

Convenience method which changes table.column to alias.column.

Using this method you can maintain SQL abstraction while using column aliases. $c->addAlias("alias1", TablePeer::TABLE_NAME); $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);

Parameters
string$aliasThe alias for the current table.
string$columnThe column name for current table. (i.e. PagePeer::COLUMN_NAME).
Returns
string
static BasePagePeer::buildTableMap ( )
static

Add a TableMap instance to the database for this peer class.

static BasePagePeer::clearInstancePool (   $and_clear_all_references = false)
static

Clear the instance pool.

Returns
void
static BasePagePeer::clearRelatedInstancePool ( )
static

Method to invalidate the instance pool of all tables related to pages by a foreign key with ON DELETE CASCADE

static BasePagePeer::deleteTree ( PropelPDO  $con = null)
static

Delete an entire tree

Parameters
PropelPDO$conConnection to use.
Returns
int The number of deleted nodes
static BasePagePeer::doCount ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null 
)
static

Returns the number of rows matching criteria.

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinAll ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining all related tables

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinAllExceptPageRelatedByCanonicalId ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining the related PageRelatedByCanonicalId table

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinAllExceptUserRelatedByCreatedBy ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining the related UserRelatedByCreatedBy table

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinAllExceptUserRelatedByUpdatedBy ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining the related UserRelatedByUpdatedBy table

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinUserRelatedByCreatedBy ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining the related UserRelatedByCreatedBy table

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doCountJoinUserRelatedByUpdatedBy ( Criteria  $criteria,
  $distinct = false,
PropelPDO  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Returns the number of rows matching criteria, joining the related UserRelatedByUpdatedBy table

Parameters
Criteria$criteria
boolean$distinctWhether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
int Number of matching rows.
static BasePagePeer::doDeleteAll ( PropelPDO  $con = null)
static

Deletes all rows from the pages table.

Parameters
PropelPDO$conthe connection to use
Returns
int The number of affected rows (if supported by underlying database driver).
Exceptions
PropelException
static BasePagePeer::doInsert (   $values,
PropelPDO  $con = null 
)
static

Performs an INSERT on the database, given a Page or Criteria object.

Parameters
mixed$valuesCriteria or Page object containing data that is used to create the INSERT statement.
PropelPDO$conthe PropelPDO connection to use
Returns
mixed The new primary key.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doOnDeleteCascade ( Criteria  $criteria,
PropelPDO  $con 
)
staticprotected

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.

Parameters
Criteria$criteria
PropelPDO$con
Returns
int The number of affected rows (if supported by underlying database driver).
static BasePagePeer::doOnDeleteSetNull ( Criteria  $criteria,
PropelPDO  $con 
)
staticprotected

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.

Parameters
Criteria$criteria
PropelPDO$con
Returns
void
static BasePagePeer::doSelect ( Criteria  $criteria,
PropelPDO  $con = null 
)
static

Selects several row from the DB.

Parameters
Criteria$criteriaThe Criteria object used to build the SELECT statement.
PropelPDO$con
Returns
array Array of selected Objects
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinAll ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with all related objects.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinAllExceptPageRelatedByCanonicalId ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with all related objects except PageRelatedByCanonicalId.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinAllExceptUserRelatedByCreatedBy ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with all related objects except UserRelatedByCreatedBy.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinAllExceptUserRelatedByUpdatedBy ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with all related objects except UserRelatedByUpdatedBy.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinUserRelatedByCreatedBy ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with their User objects.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectJoinUserRelatedByUpdatedBy ( Criteria  $criteria,
  $con = null,
  $join_behavior = Criteria::LEFT_JOIN 
)
static

Selects a collection of Page objects pre-filled with their User objects.

Parameters
Criteria$criteria
PropelPDO$con
String$join_behaviorthe type of joins to use, defaults to Criteria::LEFT_JOIN
Returns
array Array of Page objects.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectOne ( Criteria  $criteria,
PropelPDO  $con = null 
)
static

Selects one object from the DB.

Parameters
Criteria$criteriaobject used to create the SELECT statement.
PropelPDO$con
Returns
Page
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doSelectStmt ( Criteria  $criteria,
PropelPDO  $con = null 
)
static

Prepares the Criteria object and uses the parent doSelect() method to execute a PDOStatement.

Use this method directly if you want to work with an executed statement directly (for example to perform your own object hydration).

Parameters
Criteria$criteriaThe Criteria object used to build the SELECT statement.
PropelPDO$conThe connection to use
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
Returns
PDOStatement The executed PDOStatement object.
See also
BasePeer::doSelect()
static BasePagePeer::doUpdate (   $values,
PropelPDO  $con = null 
)
static

Performs an UPDATE on the database, given a Page or Criteria object.

Parameters
mixed$valuesCriteria or Page object containing data that is used to create the UPDATE statement.
PropelPDO$conThe connection to use (specify PropelPDO connection object to exert more control over transactions).
Returns
int The number of affected rows (if supported by underlying database driver).
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::doValidate (   $obj,
  $cols = null 
)
static

Validates all modified columns of given Page 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.

Parameters
Page$objThe object to validate.
mixed$colsColumn name or array of column names.
Returns
mixed TRUE if all columns are valid or the error message of the first invalid column.
static BasePagePeer::fixLevels ( PropelPDO  $con = null)
static

Update the tree to allow insertion of a leaf at the specified position

Parameters
PropelPDO$conConnection to use.
static BasePagePeer::getFieldNames (   $type = BasePeer::TYPE_PHPNAME)
static

Returns an array of field names.

Parameters
string$typeThe type of fieldnames to return: One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
Returns
array A list of field names
Exceptions
PropelException- if the type is not valid.
static BasePagePeer::getInstanceFromPool (   $key)
static

Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.

For tables with a single-column primary key, that simple pkey value will be returned. For tables with a multi-column primary key, a serialize()d version of the primary key will be returned.

Parameters
string$keyThe key (
See also
getPrimaryKeyHash()) for this instance.
Returns
Page Found object or null if 1) no instance exists for specified key or 2) instance pooling has been disabled.
See also
getPrimaryKeyHash()
static BasePagePeer::getOMClass (   $row = 0,
  $colnum = 0 
)
static

The class that the Peer will make instances of.

Returns
string ClassName
static BasePagePeer::getPrimaryKeyFromRow (   $row,
  $startcol = 0 
)
static

Retrieves the primary key from the DB resultset row For tables with a single-column primary key, that simple pkey value will be returned. For tables with a multi-column primary key, an array of the primary key columns will be returned.

Parameters
array$rowPropelPDO resultset row.
int$startcolThe 0-based offset for reading from the resultset row.
Returns
mixed The primary key of the row
static BasePagePeer::getPrimaryKeyHashFromRow (   $row,
  $startcol = 0 
)
static

Retrieves a string version of the primary key from the DB resultset row that can be used to uniquely identify a row in this table.

For tables with a single-column primary key, that simple pkey value will be returned. For tables with a multi-column primary key, a serialize()d version of the primary key will be returned.

Parameters
array$rowPropelPDO resultset row.
int$startcolThe 0-based offset for reading from the resultset row.
Returns
string A string version of PK or null if the components of primary key in result array are all null.
static BasePagePeer::getTableMap ( )
static

Returns the TableMap related to this peer. This method is not needed for general use but a specific application could have a need.

Returns
TableMap
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::isValid ( Page  $node = null)
static

Tests if node is valid

Parameters
Page$nodePropel object for src node
Returns
bool
static BasePagePeer::makeRoomForLeaf (   $left,
  $prune = null,
PropelPDO  $con = null 
)
static

Update the tree to allow insertion of a leaf at the specified position

Parameters
int$leftleft column value
mixed$pruneObject to prune from the shift
PropelPDO$conConnection to use.
static BasePagePeer::populateObject (   $row,
  $startcol = 0 
)
static

Populates an object of the default type or an object that inherit from the default.

Parameters
array$rowPropelPDO resultset row.
int$startcolThe 0-based offset for reading from the resultset row.
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
Returns
array (Page object, last column rank)
static BasePagePeer::populateObjects ( PDOStatement  $stmt)
static

The returned array will contain objects of the default type or objects that inherit from the default.

Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::removeInstanceFromPool (   $value)
static

Removes an object from the instance pool.

Propel keeps cached copies of objects in an instance pool when they are retrieved from the database. In some cases – especially when you override doDelete methods in your stub classes – you may need to explicitly remove objects from the cache in order to prevent returning objects that no longer exist.

Parameters
mixed$valueA Page object or a primary key value.
Returns
void
Exceptions
PropelException- if the value is invalid.
static BasePagePeer::retrieveByPK (   $pk,
PropelPDO  $con = null 
)
static

Retrieve a single object by pkey.

Parameters
int$pkthe primary key.
PropelPDO$conthe connection to use
Returns
Page
static BasePagePeer::retrieveByPKs (   $pks,
PropelPDO  $con = null 
)
static

Retrieve multiple objects by pkey.

Parameters
array$pksList of primary keys
PropelPDO$conthe connection to use
Returns
Page[]
Exceptions
PropelExceptionAny exceptions caught during processing will be rethrown wrapped into a PropelException.
static BasePagePeer::retrieveRoot ( PropelPDO  $con = null)
static

Returns the root node for a given scope

Parameters
PropelPDO$conConnection to use.
Returns
Page Propel object for root node
static BasePagePeer::retrieveTree ( Criteria  $criteria = null,
PropelPDO  $con = null 
)
static

Returns the whole tree node for a given scope

Parameters
Criteria$criteriaOptional Criteria to filter the query
PropelPDO$conConnection to use.
Returns
Page Propel object for root node
static BasePagePeer::setNegativeScope (   $scope,
PropelPDO  $con = null 
)
static

Updates all scope values for items that has negative left (<=0) values.

Parameters
mixed$scope
PropelPDO$conConnection to use.
static BasePagePeer::shiftLevel (   $delta,
  $first,
  $last,
PropelPDO  $con = null 
)
static

Adds $delta to level for nodes having left value >= $first and right value <= $last. '$delta' can also be negative.

Parameters
int$deltaValue to be shifted by, can be negative
int$firstFirst node to be shifted
int$lastLast node to be shifted
PropelPDO$conConnection to use.
static BasePagePeer::shiftRLValues (   $delta,
  $first,
  $last = null,
PropelPDO  $con = null 
)
static

Adds $delta to all L and R values that are >= $first and <= $last. '$delta' can also be negative.

Parameters
int$deltaValue to be shifted by, can be negative
int$firstFirst node to be shifted
int$lastLast node to be shifted (optional)
PropelPDO$conConnection to use.
static BasePagePeer::translateFieldName (   $name,
  $fromType,
  $toType 
)
static

Translates a fieldname to another type

Parameters
string$namefield name
string$fromTypeOne of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM
string$toTypeOne of the class type constants
Returns
string translated name of the field.
Exceptions
PropelException- if the specified name could not be found in the fieldname mappings.
static BasePagePeer::updateLoadedNodes (   $prune = null,
PropelPDO  $con = null 
)
static

Reload all already loaded nodes to sync them with updated db

Parameters
Page$pruneObject to prune from the update
PropelPDO$conConnection to use.

Member Data Documentation

BasePagePeer::$fieldKeys
staticprotected
Initial value:
= array (
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Name' => 1, 'Identifier' => 2, 'PageType' => 3, 'TemplateName' => 4, 'IsInactive' => 5, 'IsFolder' => 6, 'IsHidden' => 7, 'IsProtected' => 8, 'CanonicalId' => 9, 'TreeLeft' => 10, 'TreeRight' => 11, 'TreeLevel' => 12, 'CreatedAt' => 13, 'UpdatedAt' => 14, 'CreatedBy' => 15, 'UpdatedBy' => 16, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'name' => 1, 'identifier' => 2, 'pageType' => 3, 'templateName' => 4, 'isInactive' => 5, 'isFolder' => 6, 'isHidden' => 7, 'isProtected' => 8, 'canonicalId' => 9, 'treeLeft' => 10, 'treeRight' => 11, 'treeLevel' => 12, 'createdAt' => 13, 'updatedAt' => 14, 'createdBy' => 15, 'updatedBy' => 16, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'IDENTIFIER' => 2, 'PAGE_TYPE' => 3, 'TEMPLATE_NAME' => 4, 'IS_INACTIVE' => 5, 'IS_FOLDER' => 6, 'IS_HIDDEN' => 7, 'IS_PROTECTED' => 8, 'CANONICAL_ID' => 9, 'TREE_LEFT' => 10, 'TREE_RIGHT' => 11, 'TREE_LEVEL' => 12, 'CREATED_AT' => 13, 'UPDATED_AT' => 14, 'CREATED_BY' => 15, 'UPDATED_BY' => 16, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'identifier' => 2, 'page_type' => 3, 'template_name' => 4, 'is_inactive' => 5, 'is_folder' => 6, 'is_hidden' => 7, 'is_protected' => 8, 'canonical_id' => 9, 'tree_left' => 10, 'tree_right' => 11, 'tree_level' => 12, 'created_at' => 13, 'updated_at' => 14, 'created_by' => 15, 'updated_by' => 16, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
)

holds an array of keys for quick access to the fieldnames array

first dimension keys are the type constants e.g. PagePeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0

BasePagePeer::$fieldNames
staticprotected
Initial value:
= array (
BasePeer::TYPE_PHPNAME => array ('Id', 'Name', 'Identifier', 'PageType', 'TemplateName', 'IsInactive', 'IsFolder', 'IsHidden', 'IsProtected', 'CanonicalId', 'TreeLeft', 'TreeRight', 'TreeLevel', 'CreatedAt', 'UpdatedAt', 'CreatedBy', 'UpdatedBy', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'name', 'identifier', 'pageType', 'templateName', 'isInactive', 'isFolder', 'isHidden', 'isProtected', 'canonicalId', 'treeLeft', 'treeRight', 'treeLevel', 'createdAt', 'updatedAt', 'createdBy', 'updatedBy', ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'IDENTIFIER', 'PAGE_TYPE', 'TEMPLATE_NAME', 'IS_INACTIVE', 'IS_FOLDER', 'IS_HIDDEN', 'IS_PROTECTED', 'CANONICAL_ID', 'TREE_LEFT', 'TREE_RIGHT', 'TREE_LEVEL', 'CREATED_AT', 'UPDATED_AT', 'CREATED_BY', 'UPDATED_BY', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'identifier', 'page_type', 'template_name', 'is_inactive', 'is_folder', 'is_hidden', 'is_protected', 'canonical_id', 'tree_left', 'tree_right', 'tree_level', 'created_at', 'updated_at', 'created_by', 'updated_by', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, )
)

holds an array of fieldnames

first dimension keys are the type constants e.g. PagePeer::$fieldNames[PagePeer::TYPE_PHPNAME][0] = 'Id'

const BasePagePeer::CANONICAL_ID = 'pages.canonical_id'

the column name for the canonical_id field

const BasePagePeer::CREATED_AT = 'pages.created_at'

the column name for the created_at field

const BasePagePeer::CREATED_BY = 'pages.created_by'

the column name for the created_by field

const BasePagePeer::DATABASE_NAME = 'rapila'

the default database name for this class

const BasePagePeer::DEFAULT_STRING_FORMAT = 'YAML'

The default string format for model objects of the related table

const BasePagePeer::ID = 'pages.id'

the column name for the id field

const BasePagePeer::IDENTIFIER = 'pages.identifier'

the column name for the identifier field

const BasePagePeer::IS_FOLDER = 'pages.is_folder'

the column name for the is_folder field

const BasePagePeer::IS_HIDDEN = 'pages.is_hidden'

the column name for the is_hidden field

const BasePagePeer::IS_INACTIVE = 'pages.is_inactive'

the column name for the is_inactive field

const BasePagePeer::IS_PROTECTED = 'pages.is_protected'

the column name for the is_protected field

const BasePagePeer::LEFT_COL = 'pages.tree_left'

Left column for the set

const BasePagePeer::LEVEL_COL = 'pages.tree_level'

Level column for the set

const BasePagePeer::NAME = 'pages.name'

the column name for the name field

const BasePagePeer::NUM_COLUMNS = 17

The total number of columns.

const BasePagePeer::NUM_HYDRATE_COLUMNS = 17

The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS)

const BasePagePeer::NUM_LAZY_LOAD_COLUMNS = 0

The number of lazy-loaded columns.

const BasePagePeer::OM_CLASS = 'Page'

the related Propel class for this table

const BasePagePeer::PAGE_TYPE = 'pages.page_type'

the column name for the page_type field

const BasePagePeer::RIGHT_COL = 'pages.tree_right'

Right column for the set

const BasePagePeer::TABLE_NAME = 'pages'

the table name for this class

const BasePagePeer::TEMPLATE_NAME = 'pages.template_name'

the column name for the template_name field

const BasePagePeer::TM_CLASS = 'PageTableMap'

the related TableMap class for this table

const BasePagePeer::TREE_LEFT = 'pages.tree_left'

the column name for the tree_left field

const BasePagePeer::TREE_LEVEL = 'pages.tree_level'

the column name for the tree_level field

const BasePagePeer::TREE_RIGHT = 'pages.tree_right'

the column name for the tree_right field

const BasePagePeer::UPDATED_AT = 'pages.updated_at'

the column name for the updated_at field

const BasePagePeer::UPDATED_BY = 'pages.updated_by'

the column name for the updated_by field


The documentation for this class was generated from the following file: