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

Public Member Functions

 __construct ($dbName=null, $modelName=null, $modelAlias=null)
 
 findPk ($key, $con=null)
 
 findOneById ($key, $con=null)
 
 findPks ($keys, $con=null)
 
 filterByPrimaryKey ($key)
 
 filterByPrimaryKeys ($keys)
 
 filterById ($id=null, $comparison=null)
 
 filterByPathPrefix ($pathPrefix=null, $comparison=null)
 
 filterByIsActive ($isActive=null, $comparison=null)
 
 filterBySort ($sort=null, $comparison=null)
 
 filterByCreatedAt ($createdAt=null, $comparison=null)
 
 filterByUpdatedAt ($updatedAt=null, $comparison=null)
 
 filterByCreatedBy ($createdBy=null, $comparison=null)
 
 filterByUpdatedBy ($updatedBy=null, $comparison=null)
 
 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)
 
 filterByPageString ($pageString, $comparison=null)
 
 joinPageString ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 usePageStringQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByLanguageObject ($languageObject, $comparison=null)
 
 joinLanguageObject ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useLanguageObjectQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByLanguageObjectHistory ($languageObjectHistory, $comparison=null)
 
 joinLanguageObjectHistory ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useLanguageObjectHistoryQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByTranslation ($translation, $comparison=null)
 
 joinTranslation ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 useTranslationQuery ($relationAlias=null, $joinType=Criteria::INNER_JOIN)
 
 filterByUserRelatedByLanguageId ($user, $comparison=null)
 
 joinUserRelatedByLanguageId ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useUserRelatedByLanguageIdQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 filterByDocument ($document, $comparison=null)
 
 joinDocument ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useDocumentQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 filterByLink ($link, $comparison=null)
 
 joinLink ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 useLinkQuery ($relationAlias=null, $joinType=Criteria::LEFT_JOIN)
 
 prune ($language=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

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

Initializes internal state of BaseLanguageQuery 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 BaseLanguageQuery::create (   $modelAlias = null,
  $criteria = null 
)
static

Returns a new LanguageQuery object.

Parameters
string$modelAliasThe alias of a model in the query
LanguageQuery | Criteria$criteriaOptional Criteria to build the query from
Returns
LanguageQuery
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterByDocument (   $document,
  $comparison = null 
)

Filter the query by a related Document object

Parameters
Document | PropelObjectCollection$documentthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterById (   $id = null,
  $comparison = null 
)

Filter the query on the id column

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

Parameters
string$idThe value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterByIsActive (   $isActive = null,
  $comparison = null 
)

Filter the query on the is_active column

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

Parameters
boolean | string$isActiveThe 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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterByLanguageObject (   $languageObject,
  $comparison = null 
)

Filter the query by a related LanguageObject object

Parameters
LanguageObject | PropelObjectCollection$languageObjectthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterByLanguageObjectHistory (   $languageObjectHistory,
  $comparison = null 
)

Filter the query by a related LanguageObjectHistory object

Parameters
LanguageObjectHistory | PropelObjectCollection$languageObjectHistorythe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterByLink (   $link,
  $comparison = null 
)

Filter the query by a related Link object

Parameters
Link | PropelObjectCollection$linkthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterByPageString (   $pageString,
  $comparison = null 
)

Filter the query by a related PageString object

Parameters
PageString | PropelObjectCollection$pageStringthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterByPathPrefix (   $pathPrefix = null,
  $comparison = null 
)

Filter the query on the path_prefix column

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

Parameters
string$pathPrefixThe value to use as filter. Accepts wildcards (* and % trigger a LIKE)
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterByPrimaryKey (   $key)

Filter the query by primary key

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

Filter the query by a list of primary keys

Parameters
array$keysThe list of primary key to use for the query
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterBySort (   $sort = null,
  $comparison = null 
)

Filter the query on the sort column

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

Parameters
mixed$sortThe 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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::filterByTranslation (   $translation,
  $comparison = null 
)

Filter the query by a related Translation object

Parameters
Translation | PropelObjectCollection$translationthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::filterByUserRelatedByLanguageId (   $user,
  $comparison = null 
)

Filter the query by a related User object

Parameters
User | PropelObjectCollection$userthe related object to use as filter
string$comparisonOperator to use for the column comparison, defaults to Criteria::EQUAL
Returns
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
Exceptions
PropelException- if the provided filter is invalid.
BaseLanguageQuery::findOneById (   $key,
  $con = null 
)

Alias of findPk to use instance pooling

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conA connection object
Returns
Language A model object, or null if the key is not found
Exceptions
PropelException
BaseLanguageQuery::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(12, $con);

Parameters
mixed$keyPrimary key to use for the query
PropelPDO$conan optional connection object
Returns
Language|Language[]|mixed the result, formatted by the current formatter
BaseLanguageQuery::findPkComplex (   $key,
  $con 
)
protected

Find object by primary key.

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

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

Parameters
array$keysPrimary keys to use for the query
PropelPDO$conan optional connection object
Returns
PropelObjectCollection|Language[]|mixed the list of results, formatted by the current formatter
BaseLanguageQuery::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
Language A model object, or null if the key is not found
Exceptions
PropelException
BaseLanguageQuery::firstCreatedFirst ( )

Order by create date asc

Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::firstUpdatedFirst ( )

Order by update date asc

Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::joinDocument (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the Document relation

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

Adds a JOIN clause to the query using the LanguageObject relation

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

Adds a JOIN clause to the query using the LanguageObjectHistory relation

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

Adds a JOIN clause to the query using the Link relation

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

Adds a JOIN clause to the query using the PageString relation

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

Adds a JOIN clause to the query using the Translation relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::joinUserRelatedByLanguageId (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Adds a JOIN clause to the query using the UserRelatedByLanguageId relation

Parameters
string$relationAliasoptional alias for the relation
string$joinTypeAccepted values are null, 'left join', 'right join', 'inner join'
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::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
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::lastCreatedFirst ( )

Order by create date desc

Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::lastUpdatedFirst ( )

Order by update date desc

Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::prune (   $language = null)

Exclude object from result

Parameters
Language$languageObject to remove from the list of results
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::recentlyCreated (   $nbDays = 7)

Filter by the latest created

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

Filter by the latest updated

Parameters
int$nbDaysMaximum age of the latest update in days
Returns
LanguageQuery The current query, for fluid interface
BaseLanguageQuery::useDocumentQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the Document relation Document 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
DocumentQuery A secondary query class using the current class as primary query
BaseLanguageQuery::useLanguageObjectHistoryQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the LanguageObjectHistory relation LanguageObjectHistory 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
LanguageObjectHistoryQuery A secondary query class using the current class as primary query
BaseLanguageQuery::useLanguageObjectQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the LanguageObject relation LanguageObject 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
LanguageObjectQuery A secondary query class using the current class as primary query
BaseLanguageQuery::useLinkQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the Link relation Link 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
LinkQuery A secondary query class using the current class as primary query
BaseLanguageQuery::usePageStringQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the PageString relation PageString 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
PageStringQuery A secondary query class using the current class as primary query
BaseLanguageQuery::useTranslationQuery (   $relationAlias = null,
  $joinType = Criteria::INNER_JOIN 
)

Use the Translation relation Translation 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
TranslationQuery A secondary query class using the current class as primary query
BaseLanguageQuery::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
BaseLanguageQuery::useUserRelatedByLanguageIdQuery (   $relationAlias = null,
  $joinType = Criteria::LEFT_JOIN 
)

Use the UserRelatedByLanguageId 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
BaseLanguageQuery::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: