ConfigQuery
class ConfigQuery extends ConfigQuery
Skeleton subclass for performing query and update operations on the 'config' table.
You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
Methods
Initializes internal state of \Thelia\Model\Base\ConfigQuery object.
Returns a new ChildConfigQuery object.
Find object by primary key.
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
Filter the query by a list of primary keys
Filter the query on the id column
Filter the query on the name column
Filter the query on the value column
Filter the query on the secured column
Filter the query on the hidden column
Filter the query on the created_at column
Filter the query on the updated_at column
Filter the query by a related \Thelia\Model\ConfigI18n object
Adds a JOIN clause to the query using the ConfigI18n relation
Use the ConfigI18n relation ConfigI18n object
Deletes all rows from the config table.
Performs a DELETE on the database, given a ChildConfig or Criteria object OR a primary key value.
Adds a JOIN clause to the query using the i18n relation
Adds a JOIN clause to the query and hydrates the related I18n object.
Use the I18n relation query object
Order by the secured column
Order by the created_at column
Order by the updated_at column
Adds a LEFT JOIN clause to the query using the ConfigI18n relation
Adds a RIGHT JOIN clause to the query using the ConfigI18n relation
Adds a INNER JOIN clause to the query using the ConfigI18n relation
Return the first ChildConfig matching the query
Return the first ChildConfig matching the query, or a new ChildConfig object populated from the query conditions when no match is found
Return the first ChildConfig filtered by the id column
Return the first ChildConfig filtered by the name column
Return the first ChildConfig filtered by the value column
Return the first ChildConfig filtered by the secured column
Return the first ChildConfig filtered by the hidden column
Return the first ChildConfig filtered by the created_at column
Return the first ChildConfig filtered by the updated_at column
Return ChildConfig objects filtered by the name column
Return ChildConfig objects filtered by the value column
Return ChildConfig objects filtered by the secured column
Return ChildConfig objects filtered by the hidden column
Return ChildConfig objects filtered by the created_at column
Return ChildConfig objects filtered by the updated_at column
Find a config variable and return the value or default value if not founded.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
check if Thelia multi domain is activated. (Means one domain for each language)
No description
Details
in
ConfigQuery at line 79
__construct(
string $dbName = 'thelia',
string $modelName = '\\Thelia\\Model\\Config',
string $modelAlias = null)
Initializes internal state of \Thelia\Model\Base\ConfigQuery object.
in
ConfigQuery at line 92
static
ConfigQuery
create(
string $modelAlias = null,
Criteria $criteria = null)
Returns a new ChildConfigQuery object.
in
ConfigQuery at line 122
Config|array|mixed
findPk(
mixed $key,
ConnectionInterface $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);
in
ConfigQuery at line 204
ObjectCollection|array|mixed
findPks(
array $keys,
ConnectionInterface $con = null)
Find objects by primary key
$objs = $c->findPks(array(12, 56, 832), $con);
in
ConfigQuery at line 225
ConfigQuery
filterByPrimaryKey(
mixed $key)
Filter the query by primary key
in
ConfigQuery at line 238
ConfigQuery
filterByPrimaryKeys(
array $keys)
Filter the query by a list of primary keys
in
ConfigQuery at line 262
ConfigQuery
filterById(
mixed $id = null,
string $comparison = null)
Filter the query on the id column
Example usage:
$query->filterById(1234); // WHERE id = 1234
$query->filterById(array(12, 34)); // WHERE id IN (12, 34)
$query->filterById(array('min' => 12)); // WHERE id > 12
in
ConfigQuery at line 300
ConfigQuery
filterByName(
string $name = null,
string $comparison = null)
Filter the query on the name column
Example usage:
$query->filterByName('fooValue'); // WHERE name = 'fooValue'
$query->filterByName('%fooValue%'); // WHERE name LIKE '%fooValue%'
in
ConfigQuery at line 329
ConfigQuery
filterByValue(
string $value = null,
string $comparison = null)
Filter the query on the value column
Example usage:
$query->filterByValue('fooValue'); // WHERE value = 'fooValue'
$query->filterByValue('%fooValue%'); // WHERE value LIKE '%fooValue%'
in
ConfigQuery at line 361
ConfigQuery
filterBySecured(
mixed $secured = null,
string $comparison = null)
Filter the query on the secured column
Example usage:
$query->filterBySecured(1234); // WHERE secured = 1234
$query->filterBySecured(array(12, 34)); // WHERE secured IN (12, 34)
$query->filterBySecured(array('min' => 12)); // WHERE secured > 12
in
ConfigQuery at line 402
ConfigQuery
filterByHidden(
mixed $hidden = null,
string $comparison = null)
Filter the query on the hidden column
Example usage:
$query->filterByHidden(1234); // WHERE hidden = 1234
$query->filterByHidden(array(12, 34)); // WHERE hidden IN (12, 34)
$query->filterByHidden(array('min' => 12)); // WHERE hidden > 12
in
ConfigQuery at line 445
ConfigQuery
filterByCreatedAt(
mixed $createdAt = null,
string $comparison = null)
Filter the query on the created_at column
Example usage:
$query->filterByCreatedAt('2011-03-14'); // WHERE createdat = '2011-03-14'
$query->filterByCreatedAt('now'); // WHERE createdat = '2011-03-14'
$query->filterByCreatedAt(array('max' => 'yesterday')); // WHERE created_at > '2011-03-13'
in
ConfigQuery at line 488
ConfigQuery
filterByUpdatedAt(
mixed $updatedAt = null,
string $comparison = null)
Filter the query on the updated_at column
Example usage:
$query->filterByUpdatedAt('2011-03-14'); // WHERE updatedat = '2011-03-14'
$query->filterByUpdatedAt('now'); // WHERE updatedat = '2011-03-14'
$query->filterByUpdatedAt(array('max' => 'yesterday')); // WHERE updated_at > '2011-03-13'
in
ConfigQuery at line 519
ConfigQuery
filterByConfigI18n(
ConfigI18n|ObjectCollection $configI18n,
string $comparison = null)
Filter the query by a related \Thelia\Model\ConfigI18n object
in
ConfigQuery at line 542
ConfigQuery
joinConfigI18n(
string $relationAlias = null,
string $joinType = 'LEFT JOIN')
Adds a JOIN clause to the query using the ConfigI18n relation
in
ConfigQuery at line 577
ConfigI18nQuery
useConfigI18nQuery(
string $relationAlias = null,
string $joinType = 'LEFT JOIN')
Use the ConfigI18n relation ConfigI18n object
in
ConfigQuery at line 591
ConfigQuery
prune(
Config $config = null)
Exclude object from result
in
ConfigQuery at line 606
int
doDeleteAll(
ConnectionInterface $con = null)
Deletes all rows from the config table.
in
ConfigQuery at line 643
int
delete(
ConnectionInterface $con = null)
Performs a DELETE on the database, given a ChildConfig or Criteria object OR a primary key value.
in
ConfigQuery at line 684
ConfigQuery
recentlyUpdated(
int $nbDays = 7)
Filter by the latest updated
in
ConfigQuery at line 696
ConfigQuery
recentlyCreated(
int $nbDays = 7)
Filter by the latest created
in
ConfigQuery at line 706
ConfigQuery
lastUpdatedFirst()
Order by update date desc
in
ConfigQuery at line 716
ConfigQuery
firstUpdatedFirst()
Order by update date asc
in
ConfigQuery at line 726
ConfigQuery
lastCreatedFirst()
Order by create date desc
in
ConfigQuery at line 736
ConfigQuery
firstCreatedFirst()
Order by create date asc
in
ConfigQuery at line 752
ConfigQuery
joinI18n(
string $locale = 'en_US',
string $relationAlias = null,
string $joinType = Criteria::LEFT_JOIN)
Adds a JOIN clause to the query using the i18n relation
in
ConfigQuery at line 770
ConfigQuery
joinWithI18n(
string $locale = 'en_US',
string $joinType = Criteria::LEFT_JOIN)
Adds a JOIN clause to the query and hydrates the related I18n object.
Shortcut for $c->joinI18n($locale)->with()
in
ConfigQuery at line 791
ConfigI18nQuery
useI18nQuery(
string $locale = 'en_US',
string $relationAlias = null,
string $joinType = Criteria::LEFT_JOIN)
Use the I18n relation query object
in
ConfigQuery at line 69
ChildConfigQuery
orderById($order = Criteria::ASC)
Order by the id column
in
ConfigQuery at line 69
ChildConfigQuery
orderByName($order = Criteria::ASC)
Order by the name column
in
ConfigQuery at line 69
ChildConfigQuery
orderByValue($order = Criteria::ASC)
Order by the value column
in
ConfigQuery at line 69
ChildConfigQuery
orderBySecured($order = Criteria::ASC)
Order by the secured column
in
ConfigQuery at line 69
ChildConfigQuery
orderByHidden($order = Criteria::ASC)
Order by the hidden column
in
ConfigQuery at line 69
ChildConfigQuery
orderByCreatedAt($order = Criteria::ASC)
Order by the created_at column
in
ConfigQuery at line 69
ChildConfigQuery
orderByUpdatedAt($order = Criteria::ASC)
Order by the updated_at column
in
ConfigQuery at line 69
ChildConfigQuery
groupById()
Group by the id column
in
ConfigQuery at line 69
ChildConfigQuery
groupByName()
Group by the name column
in
ConfigQuery at line 69
ChildConfigQuery
groupByValue()
Group by the value column
in
ConfigQuery at line 69
ChildConfigQuery
groupBySecured()
Group by the secured column
in
ConfigQuery at line 69
ChildConfigQuery
groupByHidden()
Group by the hidden column
in
ConfigQuery at line 69
ChildConfigQuery
groupByCreatedAt()
Group by the created_at column
in
ConfigQuery at line 69
ChildConfigQuery
groupByUpdatedAt()
Group by the updated_at column
in
ConfigQuery at line 69
ChildConfigQuery
leftJoin($relation)
Adds a LEFT JOIN clause to the query
in
ConfigQuery at line 69
ChildConfigQuery
rightJoin($relation)
Adds a RIGHT JOIN clause to the query
in
ConfigQuery at line 69
ChildConfigQuery
innerJoin($relation)
Adds a INNER JOIN clause to the query
in
ConfigQuery at line 69
ChildConfigQuery
leftJoinConfigI18n($relationAlias = null)
Adds a LEFT JOIN clause to the query using the ConfigI18n relation
in
ConfigQuery at line 69
ChildConfigQuery
rightJoinConfigI18n($relationAlias = null)
Adds a RIGHT JOIN clause to the query using the ConfigI18n relation
in
ConfigQuery at line 69
ChildConfigQuery
innerJoinConfigI18n($relationAlias = null)
Adds a INNER JOIN clause to the query using the ConfigI18n relation
in
ConfigQuery at line 69
ChildConfig
findOne(
ConnectionInterface $con = null)
Return the first ChildConfig matching the query
in
ConfigQuery at line 69
ChildConfig
findOneOrCreate(
ConnectionInterface $con = null)
Return the first ChildConfig matching the query, or a new ChildConfig object populated from the query conditions when no match is found
in
ConfigQuery at line 69
ChildConfig
findOneById(
int $id)
Return the first ChildConfig filtered by the id column
in
ConfigQuery at line 69
ChildConfig
findOneByName(
string $name)
Return the first ChildConfig filtered by the name column
in
ConfigQuery at line 69
ChildConfig
findOneByValue(
string $value)
Return the first ChildConfig filtered by the value column
in
ConfigQuery at line 69
ChildConfig
findOneBySecured(
int $secured)
Return the first ChildConfig filtered by the secured column
in
ConfigQuery at line 69
ChildConfig
findOneByHidden(
int $hidden)
Return the first ChildConfig filtered by the hidden column
in
ConfigQuery at line 69
ChildConfig
findOneByCreatedAt(
string $created_at)
Return the first ChildConfig filtered by the created_at column
in
ConfigQuery at line 69
ChildConfig
findOneByUpdatedAt(
string $updated_at)
Return the first ChildConfig filtered by the updated_at column
in
ConfigQuery at line 69
array
findById(
int $id)
Return ChildConfig objects filtered by the id column
in
ConfigQuery at line 69
array
findByName(
string $name)
Return ChildConfig objects filtered by the name column
in
ConfigQuery at line 69
array
findByValue(
string $value)
Return ChildConfig objects filtered by the value column
in
ConfigQuery at line 69
array
findBySecured(
int $secured)
Return ChildConfig objects filtered by the secured column
in
ConfigQuery at line 69
array
findByHidden(
int $hidden)
Return ChildConfig objects filtered by the hidden column
in
ConfigQuery at line 69
array
findByCreatedAt(
string $created_at)
Return ChildConfig objects filtered by the created_at column
in
ConfigQuery at line 69
array
findByUpdatedAt(
string $updated_at)
Return ChildConfig objects filtered by the updated_at column
at line 31
static
mixed
read($search,
null $default = null)
Find a config variable and return the value or default value if not founded.
Use this method for better performance, a cache is created for each variable already searched
at line 44
static
write($configName, $value, $secured = null, $hidden = null)
at line 66
static
resetCache($key = null)
at line 80
static
getConfiguredShopUrl()
at line 85
static
getDefaultLangWhenNoTranslationAvailable()
at line 90
static
isRewritingEnable()
at line 95
static
getPageNotFoundView()
at line 100
static
getObsoleteRewrittenUrlView()
at line 105
static
useTaxFreeAmounts()
at line 110
static
checkAvailableStock()
at line 115
static
getUnknownFlagPath()
at line 120
static
getStoreEmail()
at line 125
static
getStoreName()
at line 130
static
getStoreDescription()
at line 139
static
int|null
getStoreCountry()
at line 148
static
bool
getNotifyNewsletterSubscription()
at line 157
static
bool
isCustomerEmailConfirmationEnable()
at line 165
static
array
getNotificationEmailsList()
at line 181
static
isSmtpEnable()
at line 186
static
getSmtpHost()
at line 191
static
getSmtpPort()
at line 196
static
getSmtpEncryption()
at line 201
static
getSmtpUsername()
at line 206
static
getSmtpPassword()
at line 211
static
getSmtpAuthMode()
at line 216
static
getSmtpTimeout()
at line 221
static
getSmtpSourceIp()
at line 226
static
enableSmtp()
at line 231
static
disableSmtp()
at line 236
static
setSmtpHost($value)
at line 241
static
setSmtpPort($value)
at line 246
static
setSmtpEncryption($value)
at line 251
static
setSmtpUsername($value)
at line 256
static
setSmtpPassword($value)
at line 261
static
setSmtpAuthMode($value)
at line 266
static
setSmtpTimeout($value)
at line 271
static
setSmtpSourceIp($value)
at line 278
static
getTheliaSimpleVersion()
at line 287
static
isShowingErrorMessage()
at line 295
static
setShowingErrorMessage(
bool $v)
at line 300
static
getErrorMessagePageName()
at line 305
static
setErrorMessagePageName($v)
at line 310
static
getAdminCacheHomeStatsTTL()
at line 320
static
bool
isMultiDomainActivated()
check if Thelia multi domain is activated. (Means one domain for each language)