mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 11:11:21 +02:00
fba8e2c245
API DataObjectSchema::manyManyComponent() return array is now associative array
29 lines
518 B
PHP
29 lines
518 B
PHP
<?php
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
class i18nTestModule extends DataObject implements TestOnly
|
|
{
|
|
|
|
static $db = array(
|
|
'MyField' => 'Varchar',
|
|
);
|
|
|
|
public function myMethod()
|
|
{
|
|
_t(
|
|
'i18nTestModule.ENTITY',
|
|
'Entity with "Double Quotes"',
|
|
'Comment for entity'
|
|
);
|
|
}
|
|
}
|
|
class i18nTestModule_Addition
|
|
{
|
|
public function myAdditionalMethod()
|
|
{
|
|
_t('i18nTestModule.ADDITION', 'Addition');
|
|
}
|
|
}
|