![]() |
rapila
|
Public Member Functions | |
applyDefaultValues () | |
__construct () | |
getId () | |
getExtension () | |
getMimetype () | |
getIsOfficeDoc () | |
getCreatedAt ($format= 'Y-m-d H:i:s') | |
getUpdatedAt ($format= 'Y-m-d H:i:s') | |
getCreatedBy () | |
getUpdatedBy () | |
setId ($v) | |
setExtension ($v) | |
setMimetype ($v) | |
setIsOfficeDoc ($v) | |
setCreatedAt ($v) | |
setUpdatedAt ($v) | |
setCreatedBy ($v) | |
setUpdatedBy ($v) | |
hasOnlyDefaultValues () | |
hydrate ($row, $startcol=0, $rehydrate=false) | |
ensureConsistency () | |
reload ($deep=false, PropelPDO $con=null) | |
delete (PropelPDO $con=null) | |
save (PropelPDO $con=null) | |
getValidationFailures () | |
validate ($columns=null) | |
getByName ($name, $type=BasePeer::TYPE_PHPNAME) | |
getByPosition ($pos) | |
toArray ($keyType=BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns=true, $alreadyDumpedObjects=array(), $includeForeignObjects=false) | |
setByName ($name, $value, $type=BasePeer::TYPE_PHPNAME) | |
setByPosition ($pos, $value) | |
fromArray ($arr, $keyType=BasePeer::TYPE_PHPNAME) | |
buildCriteria () | |
buildPkeyCriteria () | |
getPrimaryKey () | |
setPrimaryKey ($key) | |
isPrimaryKeyNull () | |
copyInto ($copyObj, $deepCopy=false, $makeNew=true) | |
copy ($deepCopy=false) | |
getPeer () | |
setUserRelatedByCreatedBy (User $v=null) | |
getUserRelatedByCreatedBy (PropelPDO $con=null, $doQuery=true) | |
setUserRelatedByUpdatedBy (User $v=null) | |
getUserRelatedByUpdatedBy (PropelPDO $con=null, $doQuery=true) | |
initRelation ($relationName) | |
clearDocuments () | |
resetPartialDocuments ($v=true) | |
initDocuments ($overrideExisting=true) | |
getDocuments ($criteria=null, PropelPDO $con=null) | |
setDocuments (PropelCollection $documents, PropelPDO $con=null) | |
countDocuments (Criteria $criteria=null, $distinct=false, PropelPDO $con=null) | |
addDocument (Document $l) | |
removeDocument ($document) | |
getDocumentsJoinLanguage ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
getDocumentsJoinUserRelatedByOwnerId ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
getDocumentsJoinDocumentCategory ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
getDocumentsJoinDocumentData ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
getDocumentsJoinUserRelatedByCreatedBy ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
getDocumentsJoinUserRelatedByUpdatedBy ($criteria=null, $con=null, $join_behavior=Criteria::LEFT_JOIN) | |
clear () | |
clearAllReferences ($deep=false) | |
__toString () | |
isAlreadyInSave () | |
mayOperate ($sOperation, $oUser=false) | |
mayBeInserted ($oUser=false) | |
mayBeUpdated ($oUser=false) | |
mayBeDeleted ($oUser=false) | |
keepUpdateDateUnchanged () | |
getCreatedAtTimestamp () | |
getCreatedAtFormatted ($sLanguageId=null, $sFormatString= 'x') | |
getUpdatedAtTimestamp () | |
getUpdatedAtFormatted ($sLanguageId=null, $sFormatString= 'x') | |
keepUpdateUserUnchanged () | |
getPKArray () | |
getPKString () | |
Public Attributes | |
const | PEER = 'DocumentTypePeer' |
Protected Member Functions | |
doSave (PropelPDO $con) | |
doInsert (PropelPDO $con) | |
doUpdate (PropelPDO $con) | |
doValidate ($columns=null) | |
doAddDocument ($document) | |
Static Protected Attributes | |
static | $peer |
BaseDocumentType::__construct | ( | ) |
Initializes internal state of BaseDocumentType object.
BaseDocumentType::__toString | ( | ) |
return the string representation of this object
BaseDocumentType::addDocument | ( | Document | $l | ) |
Method called to associate a Document object to this object through the Document foreign key attribute.
BaseDocumentType::applyDefaultValues | ( | ) |
Applies default values to this object. This method should be called from the object's constructor (or equivalent initialization method).
BaseDocumentType::buildCriteria | ( | ) |
Build a Criteria object containing the values of all modified columns in this object.
BaseDocumentType::buildPkeyCriteria | ( | ) |
Builds a Criteria object containing the primary key for this object.
Unlike buildCriteria() this method includes the primary key values regardless of whether or not they have been modified.
BaseDocumentType::clear | ( | ) |
Clears the current object and sets all attributes to their default values
BaseDocumentType::clearAllReferences | ( | $deep = false | ) |
Resets all references to other model objects or collections of model objects.
This method is a user-space workaround for PHP's inability to garbage collect objects with circular references (even in PHP 5.3). This is currently necessary when using Propel in certain daemon or large-volume/high-memory operations.
boolean | $deep | Whether to also clear the references on all referrer objects. |
BaseDocumentType::clearDocuments | ( | ) |
Clears out the collDocuments collection
This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
BaseDocumentType::copy | ( | $deepCopy = false | ) |
Makes a copy of this object that will be inserted as a new row in table when saved. It creates a new object filling in the simple attributes, but skipping any primary keys that are defined for the table.
If desired, this method can also make copies of all associated (fkey referrers) objects.
boolean | $deepCopy | Whether to also copy all rows that refer (by fkey) to the current row. |
PropelException |
BaseDocumentType::copyInto | ( | $copyObj, | |
$deepCopy = false , |
|||
$makeNew = true |
|||
) |
Sets contents of passed object to values from current object.
If desired, this method can also make copies of all associated (fkey referrers) objects.
object | $copyObj | An object of DocumentType (or compatible) type. |
boolean | $deepCopy | Whether to also copy all rows that refer (by fkey) to the current row. |
boolean | $makeNew | Whether to reset autoincrement PKs and make the object new. |
PropelException |
BaseDocumentType::countDocuments | ( | Criteria | $criteria = null , |
$distinct = false , |
|||
PropelPDO | $con = null |
||
) |
BaseDocumentType::delete | ( | PropelPDO | $con = null | ) |
Removes this object from datastore and sets delete attribute.
PropelPDO | $con |
PropelException | |
Exception |
|
protected |
Document | $document | The document object to add. |
|
protected |
Insert the row in the database.
PropelPDO | $con |
PropelException |
|
protected |
Performs the work of inserting or updating the row in the database.
If the object is new, it inserts it; otherwise an update is performed. All related objects are also updated in this method.
PropelPDO | $con |
PropelException |
|
protected |
|
protected |
This function performs the validation work for complex object models.
In addition to checking the current object, all related objects will also be validated. If all pass then true
is returned; otherwise an aggregated array of ValidationFailed objects will be returned.
array | $columns | Array of column names to validate. |
true
if all validations pass; array of ValidationFailed
objects otherwise. BaseDocumentType::ensureConsistency | ( | ) |
Checks and repairs the internal consistency of the object.
This method is executed after an already-instantiated object is re-hydrated from the database. It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key.
You can override this method in the stub class, but you should always invoke the base method from the overridden method (i.e. parent::ensureConsistency()), in case your model changes.
PropelException |
BaseDocumentType::fromArray | ( | $arr, | |
$keyType = BasePeer::TYPE_PHPNAME |
|||
) |
Populates the object using an array.
This is particularly useful when populating an object from one of the request arrays (e.g. $_POST). This method goes through the column names, checking to see whether a matching key exists in populated array. If so the setByName() method is called for that column.
You can specify the key type of the array by additionally passing one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. The default key type is the column's BasePeer::TYPE_PHPNAME
array | $arr | An array to populate the object from. |
string | $keyType | The type of keys the array uses. |
BaseDocumentType::getByName | ( | $name, | |
$type = BasePeer::TYPE_PHPNAME |
|||
) |
Retrieves a field from the object by name passed in as a string.
string | $name | name |
string | $type | The type of fieldname the $name is of: one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME |
BaseDocumentType::getByPosition | ( | $pos | ) |
Retrieves a field from the object by Position as specified in the xml schema. Zero-based.
int | $pos | position in xml schema |
BaseDocumentType::getCreatedAt | ( | $format = 'Y-m-d H:i:s' | ) |
Get the [optionally formatted] temporal [created_at] column value.
string | $format | The date/time format string (either date()-style or strftime()-style). If format is null, then the raw DateTime object will be returned. |
PropelException | - if unable to parse/validate the date/time value. |
BaseDocumentType::getCreatedAtFormatted | ( | $sLanguageId = null , |
|
$sFormatString = 'x' |
|||
) |
BaseDocumentType::getCreatedAtTimestamp | ( | ) |
BaseDocumentType::getCreatedBy | ( | ) |
Get the [created_by] column value.
BaseDocumentType::getDocuments | ( | $criteria = null , |
|
PropelPDO | $con = null |
||
) |
Gets an array of Document objects which contain a foreign key that references this object.
If the $criteria is not null, it is used to always fetch the results from the database. Otherwise the results are fetched from the database the first time, then cached. Next time the same method is called without $criteria, the cached collection is returned. If this DocumentType is new, it will return an empty collection or the current collection; the criteria is ignored on a new object.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
PropelException |
BaseDocumentType::getDocumentsJoinDocumentCategory | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getDocumentsJoinDocumentData | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getDocumentsJoinLanguage | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getDocumentsJoinUserRelatedByCreatedBy | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getDocumentsJoinUserRelatedByOwnerId | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getDocumentsJoinUserRelatedByUpdatedBy | ( | $criteria = null , |
|
$con = null , |
|||
$join_behavior = Criteria::LEFT_JOIN |
|||
) |
If this collection has already been initialized with an identical criteria, it returns the collection. Otherwise if this DocumentType is new, it will return an empty collection; or if this DocumentType has previously been saved, it will retrieve related Documents from storage.
This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in DocumentType.
Criteria | $criteria | optional Criteria object to narrow the query |
PropelPDO | $con | optional connection object |
string | $join_behavior | optional join type to use (defaults to Criteria::LEFT_JOIN) |
BaseDocumentType::getExtension | ( | ) |
Get the [extension] column value.
BaseDocumentType::getId | ( | ) |
Get the [id] column value.
BaseDocumentType::getIsOfficeDoc | ( | ) |
Get the [is_office_doc] column value.
BaseDocumentType::getMimetype | ( | ) |
Get the [mimetype] column value.
BaseDocumentType::getPeer | ( | ) |
Returns a peer instance associated with this om.
Since Peer classes are not to have any instance attributes, this method returns the same instance for all member of this class. The method could therefore be static, but this would prevent one from overriding the behavior.
BaseDocumentType::getPKArray | ( | ) |
BaseDocumentType::getPKString | ( | ) |
BaseDocumentType::getPrimaryKey | ( | ) |
Returns the primary key for this object (row).
BaseDocumentType::getUpdatedAt | ( | $format = 'Y-m-d H:i:s' | ) |
Get the [optionally formatted] temporal [updated_at] column value.
string | $format | The date/time format string (either date()-style or strftime()-style). If format is null, then the raw DateTime object will be returned. |
PropelException | - if unable to parse/validate the date/time value. |
BaseDocumentType::getUpdatedAtFormatted | ( | $sLanguageId = null , |
|
$sFormatString = 'x' |
|||
) |
BaseDocumentType::getUpdatedAtTimestamp | ( | ) |
BaseDocumentType::getUpdatedBy | ( | ) |
Get the [updated_by] column value.
BaseDocumentType::getUserRelatedByCreatedBy | ( | PropelPDO | $con = null , |
$doQuery = true |
|||
) |
BaseDocumentType::getUserRelatedByUpdatedBy | ( | PropelPDO | $con = null , |
$doQuery = true |
|||
) |
BaseDocumentType::getValidationFailures | ( | ) |
Gets any ValidationFailed objects that resulted from last call to validate().
BaseDocumentType::hasOnlyDefaultValues | ( | ) |
Indicates whether the columns in this object are only set to default values.
This method can be used in conjunction with isModified() to indicate whether an object is both modified and has some values set which are non-default.
BaseDocumentType::hydrate | ( | $row, | |
$startcol = 0 , |
|||
$rehydrate = false |
|||
) |
Hydrates (populates) the object variables with values from the database resultset.
An offset (0-based "start column") is specified so that objects can be hydrated with a subset of the columns in the resultset rows. This is needed, for example, for results of JOIN queries where the resultset row includes columns from two or more tables.
array | $row | The row returned by PDOStatement->fetch(PDO::FETCH_NUM) |
int | $startcol | 0-based offset column which indicates which resultset column to start with. |
boolean | $rehydrate | Whether this object is being re-hydrated from the database. |
PropelException | - Any caught Exception will be rewrapped as a PropelException. |
BaseDocumentType::initDocuments | ( | $overrideExisting = true | ) |
Initializes the collDocuments collection.
By default this just sets the collDocuments collection to an empty array (like clearcollDocuments()); however, you may wish to override this method in your stub class to provide setting appropriate to your application – for example, setting the initial array to the values stored in database.
boolean | $overrideExisting | If set to true, the method call initializes the collection even if it is not empty |
BaseDocumentType::initRelation | ( | $relationName | ) |
Initializes a collection based on the name of a relation. Avoids crafting an 'init[$relationName]s' method name that wouldn't work when StandardEnglishPluralizer is used.
string | $relationName | The name of the relation to initialize |
BaseDocumentType::isAlreadyInSave | ( | ) |
return true is the object is in saving state
BaseDocumentType::isPrimaryKeyNull | ( | ) |
Returns true if the primary key for this object is null.
BaseDocumentType::keepUpdateDateUnchanged | ( | ) |
Mark the current object so that the update date doesn't get updated during next save
BaseDocumentType::keepUpdateUserUnchanged | ( | ) |
Mark the current object so that the updated user doesn't get updated during next save
BaseDocumentType::reload | ( | $deep = false , |
|
PropelPDO | $con = null |
||
) |
Reloads this object from datastore based on primary key and (optionally) resets all associated objects.
This will only work if the object has been saved and has a valid primary key set.
boolean | $deep | (optional) Whether to also de-associated any related objects. |
PropelPDO | $con | (optional) The PropelPDO connection to use. |
PropelException | - if this object is deleted, unsaved or doesn't have pk match in db |
BaseDocumentType::removeDocument | ( | $document | ) |
Document | $document | The document object to remove. |
BaseDocumentType::resetPartialDocuments | ( | $v = true | ) |
reset is the collDocuments collection loaded partially
BaseDocumentType::save | ( | PropelPDO | $con = null | ) |
Persists this object to the database.
If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
PropelPDO | $con |
PropelException | |
Exception |
BaseDocumentType::setByName | ( | $name, | |
$value, | |||
$type = BasePeer::TYPE_PHPNAME |
|||
) |
Sets a field from the object by name passed in as a string.
string | $name | peer name |
mixed | $value | field value |
string | $type | The type of fieldname the $name is of: one of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME |
BaseDocumentType::setByPosition | ( | $pos, | |
$value | |||
) |
Sets a field from the object by Position as specified in the xml schema. Zero-based.
int | $pos | position in xml schema |
mixed | $value | field value |
BaseDocumentType::setCreatedAt | ( | $v | ) |
Sets the value of [created_at] column to a normalized version of the date/time value specified.
mixed | $v | string, integer (timestamp), or DateTime value. Empty strings are treated as null. |
BaseDocumentType::setCreatedBy | ( | $v | ) |
Set the value of [created_by] column.
int | $v | new value |
BaseDocumentType::setDocuments | ( | PropelCollection | $documents, |
PropelPDO | $con = null |
||
) |
Sets a collection of Document objects related by a one-to-many relationship to the current object. It will also schedule objects for deletion based on a diff between old objects (aka persisted) and new objects from the given Propel collection.
PropelCollection | $documents | A Propel collection. |
PropelPDO | $con | Optional connection object |
BaseDocumentType::setExtension | ( | $v | ) |
Set the value of [extension] column.
string | $v | new value |
BaseDocumentType::setId | ( | $v | ) |
Set the value of [id] column.
int | $v | new value |
BaseDocumentType::setIsOfficeDoc | ( | $v | ) |
Sets the value of the [is_office_doc] column. Non-boolean arguments are converted using the following rules:
boolean | integer | string | $v | The new value |
BaseDocumentType::setMimetype | ( | $v | ) |
Set the value of [mimetype] column.
string | $v | new value |
BaseDocumentType::setPrimaryKey | ( | $key | ) |
Generic method to set the primary key (id column).
int | $key | Primary key. |
BaseDocumentType::setUpdatedAt | ( | $v | ) |
Sets the value of [updated_at] column to a normalized version of the date/time value specified.
mixed | $v | string, integer (timestamp), or DateTime value. Empty strings are treated as null. |
BaseDocumentType::setUpdatedBy | ( | $v | ) |
Set the value of [updated_by] column.
int | $v | new value |
BaseDocumentType::setUserRelatedByCreatedBy | ( | User | $v = null | ) |
Declares an association between this object and a User object.
User | $v |
PropelException |
BaseDocumentType::setUserRelatedByUpdatedBy | ( | User | $v = null | ) |
Declares an association between this object and a User object.
User | $v |
PropelException |
BaseDocumentType::toArray | ( | $keyType = BasePeer::TYPE_PHPNAME , |
|
$includeLazyLoadColumns = true , |
|||
$alreadyDumpedObjects = array() , |
|||
$includeForeignObjects = false |
|||
) |
Exports the object as an array.
You can specify the key type of the array by passing one of the class type constants.
string | $keyType | (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME. |
boolean | $includeLazyLoadColumns | (optional) Whether to include lazy loaded columns. Defaults to true. |
array | $alreadyDumpedObjects | List of objects to skip to avoid recursion |
boolean | $includeForeignObjects | (optional) Whether to include hydrated related objects. Default to FALSE. |
BaseDocumentType::validate | ( | $columns = null | ) |
Validates the objects modified field values and all objects related to this table.
If $columns is either a column name or an array of column names only those columns are validated.
mixed | $columns | Column name or an array of column names. |
const BaseDocumentType::PEER = 'DocumentTypePeer' |
Peer class name