Commit 5b793707 by Van

feat(all): change $keys in $flux_keys tutti cuenti

parent 7405aa96
......@@ -18,7 +18,7 @@ class Flux extends Entity
/** @var string */
protected $code;
/** @var array */
protected $keys;
protected $flux_keys;
/** @var string */
protected $contentType;
......@@ -89,18 +89,18 @@ class Flux extends Entity
/**
* @return array
*/
public function getKeys()
public function getFluxKeys()
{
return $this->keys;
return $this->flux_keys;
}
/**
* @param array $keys
* @param $flux_keys
* @return Flux
*/
public function setKeys($keys)
public function setFluxKeys($flux_keys)
{
$this->keys = $keys;
$this->flux_keys = $flux_keys;
return $this;
}
......
......@@ -15,7 +15,7 @@ class Flux extends BaseTable
$this->table->addColumn('id', 'integer', ['autoincrement' => true]);
$this->table->addColumn('title', 'string', ['notnull' => true]);
$this->table->addColumn('code', 'string', ['notnull' => true]);
$this->table->addColumn('keys', 'json_array', ['notnull' => true]);
$this->table->addColumn('flux_keys', 'json_array', ['notnull' => true]);
$this->table->addColumn('contentType', 'string', ['notnull' => true]);
$this->table->addColumn('viewless', 'boolean', ['default' => false]);
$this->table->addColumn('searchable', 'boolean', ['default' => true]);
......@@ -30,7 +30,7 @@ class Flux extends BaseTable
*/
protected function addIndexes()
{
$this->table->addIndex(['keys']);
$this->table->addIndex(['flux_keys']);
$this->table->addIndex(['id']);
}
......
......@@ -58,7 +58,7 @@ class Synchronisation
*/
public function sync() {
$options = $this->config['tourinsoft'];
$options['keys'] = $this->flux->getKeys();
$options['keys'] = $this->flux->getFluxKeys();
// Parse tourinsoft flux
$parser = new Parser($options);
......@@ -84,7 +84,7 @@ class Synchronisation
public function cron()
{
$options = $this->config['tourinsoft'];
$options['keys'] = $this->flux->getKeys();
$options['keys'] = $this->flux->getFluxKeys();
//set la session
$this->setUserSession();
......
......@@ -12,7 +12,7 @@ class ContentTypeFile
/**
* @var array
*/
private $keys;
private $flux_keys;
/**
* @var Application
*/
......@@ -39,7 +39,7 @@ class ContentTypeFile
if(empty($flux->getCode()) || empty($flux->getContentType())) {
throw new \Exception('Le flux est invalide.');
}
$this->keys = $keys;
$this->flux_keys = $keys;
$this->application = $application;
$this->options = $options;
$this->flux = $flux;
......@@ -88,7 +88,7 @@ class ContentTypeFile
'group' => 'content'
];
foreach ($this->keys as $key) {
foreach ($this->flux_keys as $key) {
$fields[strtolower($key)] = [
'type' => 'text',
'label' => $this->getFieldLabel($key),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment