Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tourinsoft
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bolt Extensions
Tourinsoft
Commits
5b793707
Commit
5b793707
authored
Nov 13, 2018
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(all): change $keys in $flux_keys tutti cuenti
parent
7405aa96
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
Flux.php
src/Storage/Entity/Flux.php
+6
-6
Flux.php
src/Storage/Schema/Table/Flux.php
+2
-2
Synchronisation.php
src/Synchronisation/Synchronisation.php
+2
-2
ContentTypeFile.php
src/Utils/ContentTypeFile.php
+3
-3
No files found.
src/Storage/Entity/Flux.php
View file @
5b793707
...
...
@@ -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
get
Flux
Keys
()
{
return
$this
->
keys
;
return
$this
->
flux_
keys
;
}
/**
* @param
array $
keys
* @param
$flux_
keys
* @return Flux
*/
public
function
set
Keys
(
$
keys
)
public
function
set
FluxKeys
(
$flux_
keys
)
{
$this
->
keys
=
$
keys
;
$this
->
flux_keys
=
$flux_
keys
;
return
$this
;
}
...
...
src/Storage/Schema/Table/Flux.php
View file @
5b793707
...
...
@@ -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'
]);
}
...
...
src/Synchronisation/Synchronisation.php
View file @
5b793707
...
...
@@ -58,7 +58,7 @@ class Synchronisation
*/
public
function
sync
()
{
$options
=
$this
->
config
[
'tourinsoft'
];
$options
[
'keys'
]
=
$this
->
flux
->
getKeys
();
$options
[
'keys'
]
=
$this
->
flux
->
get
Flux
Keys
();
// 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
->
get
Flux
Keys
();
//set la session
$this
->
setUserSession
();
...
...
src/Utils/ContentTypeFile.php
View file @
5b793707
...
...
@@ -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
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment