rapila
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
BaseLanguageObjectQuery Class Reference
Inheritance diagram for BaseLanguageObjectQuery:
LanguageObjectQuery

Public Member Functions

 __construct ($dbName=null, $modelName=null, $modelAlias=null)
 
 findPk ($key, $con=null)
 
 findPks ($keys, $con=null)
 
 filterByPrimaryKey ($key)
 
 filterByPrimaryKeys ($keys)
 
 filterByObjectId ($objectId=null, $comparison=null)
 
 filterByLanguageId ($languageId=null, $comparison=null)
 
 filterByData ($data=null, $comparison=null)
 
 filterByHasDraft ($hasDraft=null, $comparison=null)
 
 filterByCreatedAt ($createdAt=null, $comparison=null)
 
 filterByUpdatedAt ($updatedAt=null, $comparison=null)
 
 filterByCreatedBy ($createdBy=null, $comparison=null)
 
 filterByUpdatedBy ($updatedBy=null, $comparison=null)
 
 filterByContentObject ($contentObject, $comparison=null)
 
 joinContentObject ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useContentObjectQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByLanguage ($language, $comparison=null)
 
 joinLanguage ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useLanguageQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByUserRelatedByCreatedBy ($user, $comparison=null)
 
 joinUserRelatedByCreatedBy ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useUserRelatedByCreatedByQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 filterByUserRelatedByUpdatedBy ($user, $comparison=null)
 
 joinUserRelatedByUpdatedBy ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useUserRelatedByUpdatedByQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 prune ($languageObject=null)
 
 recentlyUpdated ($nbDays=7)
 
 lastUpdatedFirst ()
 
 firstUpdatedFirst ()
 
 recentlyCreated ($nbDays=7)
 
 lastCreatedFirst ()
 
 firstCreatedFirst ()
 
 findMostRecentUpdate ($bAsTimestamp=false)
 
 filterByPKArray ($pkArray)
 
 filterByPKString ($pkString)
 

Static Public Member Functions

static create ($modelAlias=null, $criteria=null)
 

Protected Member Functions

 findPkSimple ($key, $con)
 
 findPkComplex ($key, $con)
 

Constructor & Destructor Documentation

BaseLanguageObjectQuery::__construct (   $dbName = null,
  $modelName = null,
  $modelAlias = null 
)

Initializes internal state of BaseLanguageObjectQuery object.

Parameters
string$dbNameThe dabase name
string$modelNameThe phpName of a model, e.g. 'Book'
string$modelAliasThe alias for the model in this query, e.g. 'b'

Member Function Documentation

static BaseLanguageObjectQuery::create (   $modelAlias = null,
  $criteria = null 
)
static

Returns a new LanguageObjectQuery object.

Parameters
string$modelAliasThe alias of a model in the query
LanguageObjectQuery | Criteria$criteriaOptional Criteria to build the query from
Returns
LanguageObjectQuery
BaseLanguageObjectQuery::filterByContentObject (   $contentObject,
  $comparison = null 
)

Filter the query by a related ContentObject object

Parameters
ContentObject | PropelObjectCollection$contentObjectThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageObjectQuery::filterByCreatedAt (   $createdAt = null,
  $comparison = null 
)

Filter the query on the created_at column

Example usage: $query->filterByCreatedAt('2011-03-14'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt('now'); // WHERE created_at = '2011-03-14' $query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at < '2011-03-13'

Parameters
mixed$createdAtThe value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByCreatedBy (   $createdBy = null,
  $comparison = null 
)

Filter the query on the created_by column

Example usage: $query->filterByCreatedBy(1234); // WHERE created_by = 1234 $query->filterByCreatedBy(array(12, 34)); // WHERE created_by IN (12, 34) $query->filterByCreatedBy(array('min' => 12)); // WHERE created_by >= 12 $query->filterByCreatedBy(array('max' => 12)); // WHERE created_by <= 12

See also
filterByUserRelatedByCreatedBy()
Parameters
mixed$createdByThe value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByData (   $data = null,
  $comparison = null 
)

Filter the query on the data column

Parameters
mixed$dataThe value to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByHasDraft (   $hasDraft = null,
  $comparison = null 
)

Filter the query on the has_draft column

Example usage: $query->filterByHasDraft(true); // WHERE has_draft = true $query->filterByHasDraft('yes'); // WHERE has_draft = true

Parameters
boolean | string$hasDraftThe value to use as filter. Non-boolean arguments are converted using the following rules:
  • 1, '1', 'true', 'on', and 'yes' are converted to boolean true
  • 0, '0', 'false', 'off', and 'no' are converted to boolean false Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByLanguage (   $language,
  $comparison = null 
)

Filter the query by a related Language object

Parameters
Language | PropelObjectCollection$languageThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageObjectQuery::filterByLanguageId (   $languageId = null,
  $comparison = null 
)

Filter the query on the language_id column

Example usage: $query->filterByLanguageId('fooValue'); // WHERE language_id = 'fooValue' $query->filterByLanguageId('fooValue'); // WHERE language_id LIKE 'fooValue'

Parameters
string$languageIdThe value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByObjectId (   $objectId = null,
  $comparison = null 
)

Filter the query on the object_id column

Example usage: $query->filterByObjectId(1234); // WHERE object_id = 1234 $query->filterByObjectId(array(12, 34)); // WHERE object_id IN (12, 34) $query->filterByObjectId(array('min' => 12)); // WHERE object_id >= 12 $query->filterByObjectId(array('max' => 12)); // WHERE object_id <= 12

See also
filterByContentObject()
Parameters
mixed$objectIdThe value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByPrimaryKey (   $key)

Filter the query by primary key

Parameters
mixed$keyPrimary key to use for the query
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByPrimaryKeys (   $keys)

Filter the query by a list of primary keys

Parameters
array$keysThe list of primary key to use for the query
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByUpdatedAt (   $updatedAt = null,
  $comparison = null 
)

Filter the query on the updated_at column

Example usage: $query->filterByUpdatedAt('2011-03-14'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt('now'); // WHERE updated_at = '2011-03-14' $query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at < '2011-03-13'

Parameters
mixed$updatedAtThe value to use as filter. Values can be integers (unix timestamps), DateTime objects, or strings. Empty strings are treated as NULL. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByUpdatedBy (   $updatedBy = null,
  $comparison = null 
)

Filter the query on the updated_by column

Example usage: $query->filterByUpdatedBy(1234); // WHERE updated_by = 1234 $query->filterByUpdatedBy(array(12, 34)); // WHERE updated_by IN (12, 34) $query->filterByUpdatedBy(array('min' => 12)); // WHERE updated_by >= 12 $query->filterByUpdatedBy(array('max' => 12)); // WHERE updated_by <= 12

See also
filterByUserRelatedByUpdatedBy()
Parameters
mixed$updatedByThe value to use as filter. Use scalar values for equality. Use array values for in_array() equivalent. Use associative array('min' => $minValue, 'max' => $maxValue) for intervals.
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::filterByUserRelatedByCreatedBy (   $user,
  $comparison = null 
)

Filter the query by a related User object

Parameters
User | PropelObjectCollection$userThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageObjectQuery::filterByUserRelatedByUpdatedBy (   $user,
  $comparison = null 
)

Filter the query by a related User object

Parameters
User | PropelObjectCollection$userThe related object(s) to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageObjectQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageObjectQuery::findPk (   $key,
  $con = null 
)

Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched.

$obj = $c->findPk(array(12, 34), $con);

Parameters
array$keyPrimary key to use for the query A Primary key composition: [$object_id, $language_id]
PropelPDO$conan optional connection object
Returns
LanguageObject|LanguageObject[]|mixed the result, formatted by the current formatter
BaseLanguageObjectQuery::findPkComplex (   $key,
  $con 
)
protected

Find object by primary key.

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
LanguageObject|LanguageObject[]|mixed the result, formatted by the current formatter
BaseLanguageObjectQuery::findPks (   $keys,
  $con = null 
)

Find objects by primary key $objs = $c->findPks(array(array(12, 56), array(832, 123), array(123, 456)), $con);

Parameters
array$keysPrimary keys to use for the query
PropelPDO$conan optional connection object
Returns
PropelObjectCollection|LanguageObject[]|mixed the list of results, formatted by the current formatter
BaseLanguageObjectQuery::findPkSimple (   $key,
  $con 
)
protected

Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
LanguageObject A model object, or null if the key is not found
Exceptions
PropelException
BaseLanguageObjectQuery::firstCreatedFirst ( )

Order by create date asc

Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::firstUpdatedFirst ( )

Order by update date asc

Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::joinContentObject (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Adds a JOIN clause to the query using the ContentObject relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::joinLanguage (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Adds a JOIN clause to the query using the Language relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::joinUserRelatedByCreatedBy (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the UserRelatedByCreatedBy relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::joinUserRelatedByUpdatedBy (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the UserRelatedByUpdatedBy relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::lastCreatedFirst ( )

Order by create date desc

Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::lastUpdatedFirst ( )

Order by update date desc

Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::prune (   $languageObject = null)

Exclude object from result

Parameters
LanguageObject$languageObjectObject to remove from the list of results
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::recentlyCreated (   $nbDays = 7)

Filter by the latest created

Parameters
int$nbDaysMaximum age of in days
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::recentlyUpdated (   $nbDays = 7)

Filter by the latest updated

Parameters
int$nbDaysMaximum age of the latest update in days
Returns
LanguageObjectQuery The current query, for fluid interface
BaseLanguageObjectQuery::useContentObjectQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the ContentObject relation ContentObject object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
ContentObjectQuery A secondary query class using the current class as primary query
BaseLanguageObjectQuery::useLanguageQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the Language relation Language object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageQuery A secondary query class using the current class as primary query
BaseLanguageObjectQuery::useUserRelatedByCreatedByQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the UserRelatedByCreatedBy relation User object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
UserQuery A secondary query class using the current class as primary query
BaseLanguageObjectQuery::useUserRelatedByUpdatedByQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the UserRelatedByUpdatedBy relation User object

See also
useQuery()
Parameters
string$relationAliasoptional alias for the relation, to be used as main alias in the secondary query
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
UserQuery A secondary query class using the current class as primary query

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