Skip to content

Commit

Permalink
- php8 compat
Browse files Browse the repository at this point in the history
- Vendor ID added
  • Loading branch information
doishub committed Sep 21, 2021
1 parent 33978ad commit 7ba818f
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function getBundles(ParserInterface $parser): array
{
return [
BundleConfig::create(ObjectTypeEntity::class)
->setLoadAfter([ContaoCoreBundle::class])
->setReplace(['object-type-entity']),
->setLoadAfter([ContaoCoreBundle::class])
];
}
}
2 changes: 1 addition & 1 deletion src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

// Back end modules
$GLOBALS['BE_MOD']['system']['objectTypes'] = array
$GLOBALS['BE_MOD']['content']['objectTypes'] = array
(
'tables' => array('tl_object_type', 'tl_object_type_connection')
);
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/contao/dca/tl_object_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
(
'sql' => "int(10) unsigned NOT NULL auto_increment"
),
'vid' => array
(
'sql' => "varchar(255) NOT NULL default ''"
),
'tstamp' => array
(
'sorting' => true,
Expand Down
17 changes: 17 additions & 0 deletions src/Resources/contao/languages/de/tl_object_type.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@
<source>Publishing</source>
<target>Veröffentlichung</target>
</trans-unit>

<trans-unit id="tl_object_type.title.0">
<source>Title</source>
<target>Titel</target>
</trans-unit>
<trans-unit id="tl_object_type.title.1">
<source>Enter the title of the object type here</source>
<target>Geben Sie hier den Titel des Objekttypen an</target>
</trans-unit>
<trans-unit id="tl_object_type.published.0">
<source>publish</source>
<target>veröffentlicht</target>
</trans-unit>
<trans-unit id="tl_object_type.published.1">
<source>Specify here whether the object type is published</source>
<target>Geben Sie hier an, ob der Objekttyp veröffentlicht ist</target>
</trans-unit>
</body>
</file>
</xliff>
13 changes: 13 additions & 0 deletions src/Resources/contao/languages/en/tl_object_type.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@
<trans-unit id="tl_object_type.publish_legend">
<source>Publishing</source>
</trans-unit>

<trans-unit id="tl_object_type.title.0">
<source>Title</source>
</trans-unit>
<trans-unit id="tl_object_type.title.1">
<source>Enter the title of the object type here</source>
</trans-unit>
<trans-unit id="tl_object_type.published.0">
<source>publish</source>
</trans-unit>
<trans-unit id="tl_object_type.published.1">
<source>Specify here whether the object type is published</source>
</trans-unit>
</body>
</file>
</xliff>
2 changes: 2 additions & 0 deletions src/Resources/contao/models/ObjectTypeModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Reads and writes object types
*
* @property integer $id
* @property string $vid
* @property integer $tstamp
* @property string $title
* @property boolean $published
Expand All @@ -19,6 +20,7 @@
* @method static ObjectTypeModel|null findOneByTitle($val, array $opt=array())
* @method static ObjectTypeModel|null findOneByPublished($val, array $opt=array())
*
* @method static Model\Collection|ObjectTypeModel[]|ObjectTypeModel|null findByVid($val, array $opt=array())
* @method static Model\Collection|ObjectTypeModel[]|ObjectTypeModel|null findByTstamp($val, array $opt=array())
* @method static Model\Collection|ObjectTypeModel[]|ObjectTypeModel|null findByTitle($val, array $opt=array())
* @method static Model\Collection|ObjectTypeModel[]|ObjectTypeModel|null findByPublished($val, array $opt=array())
Expand Down

0 comments on commit 7ba818f

Please sign in to comment.