Added #39 a new feature the imports custom code during compilation. We also improved the compiler.

This commit is contained in:
2017-02-01 15:17:04 +02:00
parent ea2b2ea4c4
commit 1a79b92b07
458 changed files with 7127 additions and 6251 deletions

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.6
@build 20th January, 2017
@version @update number 12 of this MVC
@build 20th October, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.php
@ -218,7 +218,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
public function selectionTranslationVztfields($value,$name)
{
// Array of datatype language strings
if ($name == 'datatype')
if ($name === 'datatype')
{
$datatypeArray = array(
'CHAR' => 'COM_COMPONENTBUILDER_FIELD_CHAR',
@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
}
}
// Array of indexes language strings
if ($name == 'indexes')
if ($name === 'indexes')
{
$indexesArray = array(
1 => 'COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY',
@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
}
}
// Array of null_switch language strings
if ($name == 'null_switch')
if ($name === 'null_switch')
{
$null_switchArray = array(
'NULL' => 'COM_COMPONENTBUILDER_FIELD_NULL',
@ -270,7 +270,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
}
}
// Array of store language strings
if ($name == 'store')
if ($name === 'store')
{
$storeArray = array(
0 => 'COM_COMPONENTBUILDER_FIELD_DEFAULT',
@ -1043,7 +1043,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
}
// Alter the uniqe field for save as copy
if ($input->get('task') == 'save2copy')
if ($input->get('task') === 'save2copy')
{
// Automatic handling of other uniqe fields
$uniqeFields = $this->getUniqeFields();