move auto generate documentation to documentation/api folder
start to create a new file for insertion in database add locale column to lang table
This commit is contained in:
@@ -76,7 +76,19 @@ class Thelia extends Kernel
|
||||
*/
|
||||
public function loadConfiguration()
|
||||
{
|
||||
$request = $this->getContainer()->get('request');
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* boot parent kernel and after current kernel
|
||||
*
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
$this->loadConfiguration();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,6 +45,7 @@ class LangTableMap extends TableMap
|
||||
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
|
||||
$this->addColumn('TITLE', 'Title', 'VARCHAR', false, 100, null);
|
||||
$this->addColumn('CODE', 'Code', 'VARCHAR', false, 10, null);
|
||||
$this->addColumn('LOCALE', 'Locale', 'VARCHAR', false, 45, null);
|
||||
$this->addColumn('URL', 'Url', 'VARCHAR', false, 255, null);
|
||||
$this->addColumn('BY_DEFAULT', 'ByDefault', 'TINYINT', false, null, null);
|
||||
$this->addColumn('CREATED_AT', 'CreatedAt', 'TIMESTAMP', false, null, null);
|
||||
|
||||
@@ -63,6 +63,12 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $code;
|
||||
|
||||
/**
|
||||
* The value for the locale field.
|
||||
* @var string
|
||||
*/
|
||||
protected $locale;
|
||||
|
||||
/**
|
||||
* The value for the url field.
|
||||
* @var string
|
||||
@@ -131,6 +137,16 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [locale] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->locale;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [url] column value.
|
||||
*
|
||||
@@ -288,6 +304,27 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
return $this;
|
||||
} // setCode()
|
||||
|
||||
/**
|
||||
* Set the value of [locale] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return Lang The current object (for fluent API support)
|
||||
*/
|
||||
public function setLocale($v)
|
||||
{
|
||||
if ($v !== null) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->locale !== $v) {
|
||||
$this->locale = $v;
|
||||
$this->modifiedColumns[] = LangPeer::LOCALE;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
} // setLocale()
|
||||
|
||||
/**
|
||||
* Set the value of [url] column.
|
||||
*
|
||||
@@ -411,10 +448,11 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
||||
$this->title = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||
$this->code = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||
$this->url = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->by_default = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
|
||||
$this->created_at = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
||||
$this->updated_at = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
||||
$this->locale = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->url = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->by_default = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
|
||||
$this->created_at = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
||||
$this->updated_at = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
@@ -423,7 +461,7 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
$this->ensureConsistency();
|
||||
}
|
||||
|
||||
return $startcol + 7; // 7 = LangPeer::NUM_HYDRATE_COLUMNS.
|
||||
return $startcol + 8; // 8 = LangPeer::NUM_HYDRATE_COLUMNS.
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating Lang object", $e);
|
||||
@@ -655,6 +693,9 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(LangPeer::CODE)) {
|
||||
$modifiedColumns[':p' . $index++] = '`CODE`';
|
||||
}
|
||||
if ($this->isColumnModified(LangPeer::LOCALE)) {
|
||||
$modifiedColumns[':p' . $index++] = '`LOCALE`';
|
||||
}
|
||||
if ($this->isColumnModified(LangPeer::URL)) {
|
||||
$modifiedColumns[':p' . $index++] = '`URL`';
|
||||
}
|
||||
@@ -687,6 +728,9 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
case '`CODE`':
|
||||
$stmt->bindValue($identifier, $this->code, PDO::PARAM_STR);
|
||||
break;
|
||||
case '`LOCALE`':
|
||||
$stmt->bindValue($identifier, $this->locale, PDO::PARAM_STR);
|
||||
break;
|
||||
case '`URL`':
|
||||
$stmt->bindValue($identifier, $this->url, PDO::PARAM_STR);
|
||||
break;
|
||||
@@ -843,15 +887,18 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
return $this->getCode();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getUrl();
|
||||
return $this->getLocale();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getByDefault();
|
||||
return $this->getUrl();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getCreatedAt();
|
||||
return $this->getByDefault();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getCreatedAt();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getUpdatedAt();
|
||||
break;
|
||||
default:
|
||||
@@ -885,10 +932,11 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
$keys[0] => $this->getId(),
|
||||
$keys[1] => $this->getTitle(),
|
||||
$keys[2] => $this->getCode(),
|
||||
$keys[3] => $this->getUrl(),
|
||||
$keys[4] => $this->getByDefault(),
|
||||
$keys[5] => $this->getCreatedAt(),
|
||||
$keys[6] => $this->getUpdatedAt(),
|
||||
$keys[3] => $this->getLocale(),
|
||||
$keys[4] => $this->getUrl(),
|
||||
$keys[5] => $this->getByDefault(),
|
||||
$keys[6] => $this->getCreatedAt(),
|
||||
$keys[7] => $this->getUpdatedAt(),
|
||||
);
|
||||
|
||||
return $result;
|
||||
@@ -933,15 +981,18 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
$this->setCode($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setUrl($value);
|
||||
$this->setLocale($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setByDefault($value);
|
||||
$this->setUrl($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setCreatedAt($value);
|
||||
$this->setByDefault($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setCreatedAt($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setUpdatedAt($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -971,10 +1022,11 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
|
||||
if (array_key_exists($keys[1], $arr)) $this->setTitle($arr[$keys[1]]);
|
||||
if (array_key_exists($keys[2], $arr)) $this->setCode($arr[$keys[2]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setUrl($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setByDefault($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setCreatedAt($arr[$keys[5]]);
|
||||
if (array_key_exists($keys[6], $arr)) $this->setUpdatedAt($arr[$keys[6]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setLocale($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setUrl($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setByDefault($arr[$keys[5]]);
|
||||
if (array_key_exists($keys[6], $arr)) $this->setCreatedAt($arr[$keys[6]]);
|
||||
if (array_key_exists($keys[7], $arr)) $this->setUpdatedAt($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -989,6 +1041,7 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
if ($this->isColumnModified(LangPeer::ID)) $criteria->add(LangPeer::ID, $this->id);
|
||||
if ($this->isColumnModified(LangPeer::TITLE)) $criteria->add(LangPeer::TITLE, $this->title);
|
||||
if ($this->isColumnModified(LangPeer::CODE)) $criteria->add(LangPeer::CODE, $this->code);
|
||||
if ($this->isColumnModified(LangPeer::LOCALE)) $criteria->add(LangPeer::LOCALE, $this->locale);
|
||||
if ($this->isColumnModified(LangPeer::URL)) $criteria->add(LangPeer::URL, $this->url);
|
||||
if ($this->isColumnModified(LangPeer::BY_DEFAULT)) $criteria->add(LangPeer::BY_DEFAULT, $this->by_default);
|
||||
if ($this->isColumnModified(LangPeer::CREATED_AT)) $criteria->add(LangPeer::CREATED_AT, $this->created_at);
|
||||
@@ -1058,6 +1111,7 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
{
|
||||
$copyObj->setTitle($this->getTitle());
|
||||
$copyObj->setCode($this->getCode());
|
||||
$copyObj->setLocale($this->getLocale());
|
||||
$copyObj->setUrl($this->getUrl());
|
||||
$copyObj->setByDefault($this->getByDefault());
|
||||
$copyObj->setCreatedAt($this->getCreatedAt());
|
||||
@@ -1116,6 +1170,7 @@ abstract class BaseLang extends BaseObject implements Persistent
|
||||
$this->id = null;
|
||||
$this->title = null;
|
||||
$this->code = null;
|
||||
$this->locale = null;
|
||||
$this->url = null;
|
||||
$this->by_default = null;
|
||||
$this->created_at = null;
|
||||
|
||||
@@ -36,13 +36,13 @@ abstract class BaseLangPeer
|
||||
const TM_CLASS = 'LangTableMap';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 7;
|
||||
const NUM_COLUMNS = 8;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
|
||||
const NUM_HYDRATE_COLUMNS = 7;
|
||||
const NUM_HYDRATE_COLUMNS = 8;
|
||||
|
||||
/** the column name for the ID field */
|
||||
const ID = 'lang.ID';
|
||||
@@ -53,6 +53,9 @@ abstract class BaseLangPeer
|
||||
/** the column name for the CODE field */
|
||||
const CODE = 'lang.CODE';
|
||||
|
||||
/** the column name for the LOCALE field */
|
||||
const LOCALE = 'lang.LOCALE';
|
||||
|
||||
/** the column name for the URL field */
|
||||
const URL = 'lang.URL';
|
||||
|
||||
@@ -84,12 +87,12 @@ abstract class BaseLangPeer
|
||||
* e.g. LangPeer::$fieldNames[LangPeer::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
protected static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'Title', 'Code', 'Url', 'ByDefault', 'CreatedAt', 'UpdatedAt', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'title', 'code', 'url', 'byDefault', 'createdAt', 'updatedAt', ),
|
||||
BasePeer::TYPE_COLNAME => array (LangPeer::ID, LangPeer::TITLE, LangPeer::CODE, LangPeer::URL, LangPeer::BY_DEFAULT, LangPeer::CREATED_AT, LangPeer::UPDATED_AT, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TITLE', 'CODE', 'URL', 'BY_DEFAULT', 'CREATED_AT', 'UPDATED_AT', ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id', 'title', 'code', 'url', 'by_default', 'created_at', 'updated_at', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'Title', 'Code', 'Locale', 'Url', 'ByDefault', 'CreatedAt', 'UpdatedAt', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'title', 'code', 'locale', 'url', 'byDefault', 'createdAt', 'updatedAt', ),
|
||||
BasePeer::TYPE_COLNAME => array (LangPeer::ID, LangPeer::TITLE, LangPeer::CODE, LangPeer::LOCALE, LangPeer::URL, LangPeer::BY_DEFAULT, LangPeer::CREATED_AT, LangPeer::UPDATED_AT, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'TITLE', 'CODE', 'LOCALE', 'URL', 'BY_DEFAULT', 'CREATED_AT', 'UPDATED_AT', ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id', 'title', 'code', 'locale', 'url', 'by_default', 'created_at', 'updated_at', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -99,12 +102,12 @@ abstract class BaseLangPeer
|
||||
* e.g. LangPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
protected static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Title' => 1, 'Code' => 2, 'Url' => 3, 'ByDefault' => 4, 'CreatedAt' => 5, 'UpdatedAt' => 6, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'title' => 1, 'code' => 2, 'url' => 3, 'byDefault' => 4, 'createdAt' => 5, 'updatedAt' => 6, ),
|
||||
BasePeer::TYPE_COLNAME => array (LangPeer::ID => 0, LangPeer::TITLE => 1, LangPeer::CODE => 2, LangPeer::URL => 3, LangPeer::BY_DEFAULT => 4, LangPeer::CREATED_AT => 5, LangPeer::UPDATED_AT => 6, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TITLE' => 1, 'CODE' => 2, 'URL' => 3, 'BY_DEFAULT' => 4, 'CREATED_AT' => 5, 'UPDATED_AT' => 6, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'title' => 1, 'code' => 2, 'url' => 3, 'by_default' => 4, 'created_at' => 5, 'updated_at' => 6, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Title' => 1, 'Code' => 2, 'Locale' => 3, 'Url' => 4, 'ByDefault' => 5, 'CreatedAt' => 6, 'UpdatedAt' => 7, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'title' => 1, 'code' => 2, 'locale' => 3, 'url' => 4, 'byDefault' => 5, 'createdAt' => 6, 'updatedAt' => 7, ),
|
||||
BasePeer::TYPE_COLNAME => array (LangPeer::ID => 0, LangPeer::TITLE => 1, LangPeer::CODE => 2, LangPeer::LOCALE => 3, LangPeer::URL => 4, LangPeer::BY_DEFAULT => 5, LangPeer::CREATED_AT => 6, LangPeer::UPDATED_AT => 7, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'TITLE' => 1, 'CODE' => 2, 'LOCALE' => 3, 'URL' => 4, 'BY_DEFAULT' => 5, 'CREATED_AT' => 6, 'UPDATED_AT' => 7, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'title' => 1, 'code' => 2, 'locale' => 3, 'url' => 4, 'by_default' => 5, 'created_at' => 6, 'updated_at' => 7, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -181,6 +184,7 @@ abstract class BaseLangPeer
|
||||
$criteria->addSelectColumn(LangPeer::ID);
|
||||
$criteria->addSelectColumn(LangPeer::TITLE);
|
||||
$criteria->addSelectColumn(LangPeer::CODE);
|
||||
$criteria->addSelectColumn(LangPeer::LOCALE);
|
||||
$criteria->addSelectColumn(LangPeer::URL);
|
||||
$criteria->addSelectColumn(LangPeer::BY_DEFAULT);
|
||||
$criteria->addSelectColumn(LangPeer::CREATED_AT);
|
||||
@@ -189,6 +193,7 @@ abstract class BaseLangPeer
|
||||
$criteria->addSelectColumn($alias . '.ID');
|
||||
$criteria->addSelectColumn($alias . '.TITLE');
|
||||
$criteria->addSelectColumn($alias . '.CODE');
|
||||
$criteria->addSelectColumn($alias . '.LOCALE');
|
||||
$criteria->addSelectColumn($alias . '.URL');
|
||||
$criteria->addSelectColumn($alias . '.BY_DEFAULT');
|
||||
$criteria->addSelectColumn($alias . '.CREATED_AT');
|
||||
|
||||
@@ -22,6 +22,7 @@ use Thelia\Model\LangQuery;
|
||||
* @method LangQuery orderById($order = Criteria::ASC) Order by the id column
|
||||
* @method LangQuery orderByTitle($order = Criteria::ASC) Order by the title column
|
||||
* @method LangQuery orderByCode($order = Criteria::ASC) Order by the code column
|
||||
* @method LangQuery orderByLocale($order = Criteria::ASC) Order by the locale column
|
||||
* @method LangQuery orderByUrl($order = Criteria::ASC) Order by the url column
|
||||
* @method LangQuery orderByByDefault($order = Criteria::ASC) Order by the by_default column
|
||||
* @method LangQuery orderByCreatedAt($order = Criteria::ASC) Order by the created_at column
|
||||
@@ -30,6 +31,7 @@ use Thelia\Model\LangQuery;
|
||||
* @method LangQuery groupById() Group by the id column
|
||||
* @method LangQuery groupByTitle() Group by the title column
|
||||
* @method LangQuery groupByCode() Group by the code column
|
||||
* @method LangQuery groupByLocale() Group by the locale column
|
||||
* @method LangQuery groupByUrl() Group by the url column
|
||||
* @method LangQuery groupByByDefault() Group by the by_default column
|
||||
* @method LangQuery groupByCreatedAt() Group by the created_at column
|
||||
@@ -45,6 +47,7 @@ use Thelia\Model\LangQuery;
|
||||
* @method Lang findOneById(int $id) Return the first Lang filtered by the id column
|
||||
* @method Lang findOneByTitle(string $title) Return the first Lang filtered by the title column
|
||||
* @method Lang findOneByCode(string $code) Return the first Lang filtered by the code column
|
||||
* @method Lang findOneByLocale(string $locale) Return the first Lang filtered by the locale column
|
||||
* @method Lang findOneByUrl(string $url) Return the first Lang filtered by the url column
|
||||
* @method Lang findOneByByDefault(int $by_default) Return the first Lang filtered by the by_default column
|
||||
* @method Lang findOneByCreatedAt(string $created_at) Return the first Lang filtered by the created_at column
|
||||
@@ -53,6 +56,7 @@ use Thelia\Model\LangQuery;
|
||||
* @method array findById(int $id) Return Lang objects filtered by the id column
|
||||
* @method array findByTitle(string $title) Return Lang objects filtered by the title column
|
||||
* @method array findByCode(string $code) Return Lang objects filtered by the code column
|
||||
* @method array findByLocale(string $locale) Return Lang objects filtered by the locale column
|
||||
* @method array findByUrl(string $url) Return Lang objects filtered by the url column
|
||||
* @method array findByByDefault(int $by_default) Return Lang objects filtered by the by_default column
|
||||
* @method array findByCreatedAt(string $created_at) Return Lang objects filtered by the created_at column
|
||||
@@ -146,7 +150,7 @@ abstract class BaseLangQuery extends ModelCriteria
|
||||
*/
|
||||
protected function findPkSimple($key, $con)
|
||||
{
|
||||
$sql = 'SELECT `ID`, `TITLE`, `CODE`, `URL`, `BY_DEFAULT`, `CREATED_AT`, `UPDATED_AT` FROM `lang` WHERE `ID` = :p0';
|
||||
$sql = 'SELECT `ID`, `TITLE`, `CODE`, `LOCALE`, `URL`, `BY_DEFAULT`, `CREATED_AT`, `UPDATED_AT` FROM `lang` WHERE `ID` = :p0';
|
||||
try {
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
||||
@@ -320,6 +324,35 @@ abstract class BaseLangQuery extends ModelCriteria
|
||||
return $this->addUsingAlias(LangPeer::CODE, $code, $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query on the locale column
|
||||
*
|
||||
* Example usage:
|
||||
* <code>
|
||||
* $query->filterByLocale('fooValue'); // WHERE locale = 'fooValue'
|
||||
* $query->filterByLocale('%fooValue%'); // WHERE locale LIKE '%fooValue%'
|
||||
* </code>
|
||||
*
|
||||
* @param string $locale The value to use as filter.
|
||||
* Accepts wildcards (* and % trigger a LIKE)
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return LangQuery The current query, for fluid interface
|
||||
*/
|
||||
public function filterByLocale($locale = null, $comparison = null)
|
||||
{
|
||||
if (null === $comparison) {
|
||||
if (is_array($locale)) {
|
||||
$comparison = Criteria::IN;
|
||||
} elseif (preg_match('/[\%\*]/', $locale)) {
|
||||
$locale = str_replace('*', '%', $locale);
|
||||
$comparison = Criteria::LIKE;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->addUsingAlias(LangPeer::LOCALE, $locale, $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query on the url column
|
||||
*
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
<b>Author:</b>
|
||||
Manuel Raynaud <<a
|
||||
href="mailto:mraynaud@openstudio.fr">mraynaud@<!---->openstudio.fr</a>><br />
|
||||
<b>Located at</b> <a href="source-class-Thelia.Action.BaseAction.html#29-58" title="Go to source code">core/lib/Thelia/Action/BaseAction.php</a><br />
|
||||
<b>Located at</b> <a href="source-class-Thelia.Action.BaseAction.html#29-59" title="Go to source code">core/lib/Thelia/Action/BaseAction.php</a><br />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ href="mailto:mraynaud@openstudio.fr">mraynaud@<!---->openstudio.fr</a>&g
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#___construct">#</a>
|
||||
<code><a href="source-class-Thelia.Action.BaseAction.html#42-48" title="Go to source code">__construct</a>( <span>Symfony\Component\EventDispatcher\EventDispatcherInterface <var>$dispatcher</var></span> )</code>
|
||||
<code><a href="source-class-Thelia.Action.BaseAction.html#42-49" title="Go to source code">__construct</a>( <span>Symfony\Component\EventDispatcher\EventDispatcherInterface <var>$dispatcher</var></span> )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -193,7 +193,7 @@ href="mailto:mraynaud@openstudio.fr">mraynaud@<!---->openstudio.fr</a>&g
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_getDispatcher">#</a>
|
||||
<code><a href="source-class-Thelia.Action.BaseAction.html#50-57" title="Go to source code">getDispatcher</a>( )</code>
|
||||
<code><a href="source-class-Thelia.Action.BaseAction.html#51-58" title="Go to source code">getDispatcher</a>( )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -146,7 +146,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
<b>Namespace:</b> <a href="namespace-Thelia.html">Thelia</a>\<a href="namespace-Thelia.Core.html">Core</a><br />
|
||||
|
||||
|
||||
<b>Located at</b> <a href="source-class-Thelia.Core.Thelia.html#42-171" title="Go to source code">core/lib/Thelia/Core/Thelia.php</a><br />
|
||||
<b>Located at</b> <a href="source-class-Thelia.Core.Thelia.html#42-172" title="Go to source code">core/lib/Thelia/Core/Thelia.php</a><br />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_loadConfiguration">#</a>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#71-79" title="Go to source code">loadConfiguration</a>( )</code>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#71-80" title="Go to source code">loadConfiguration</a>( )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -253,7 +253,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_getCacheDir">#</a>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#81-96" title="Go to source code">getCacheDir</a>( )</code>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#82-97" title="Go to source code">getCacheDir</a>( )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -293,7 +293,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_getLogDir">#</a>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#98-112" title="Go to source code">getLogDir</a>( )</code>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#99-113" title="Go to source code">getLogDir</a>( )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -333,7 +333,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_registerBundles">#</a>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#131-154" title="Go to source code">registerBundles</a>( )</code>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#132-155" title="Go to source code">registerBundles</a>( )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
@@ -372,7 +372,7 @@ Symfony\Component\HttpKernel\Kernel
|
||||
|
||||
<td class="name"><div>
|
||||
<a class="anchor" href="#_registerContainerConfiguration">#</a>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#156-169" title="Go to source code">registerContainerConfiguration</a>( <span>Symfony\Component\Config\Loader\LoaderInterface <var>$loader</var></span> )</code>
|
||||
<code><a href="source-class-Thelia.Core.Thelia.html#157-170" title="Go to source code">registerContainerConfiguration</a>( <span>Symfony\Component\Config\Loader\LoaderInterface <var>$loader</var></span> )</code>
|
||||
|
||||
<div class="description short">
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user