1 | <?php namespace Rocket\Translation\Model; |
||
12 | class StringModel extends Eloquent |
||
13 | { |
||
14 | /** |
||
15 | * @var bool Indicates if the model should be timestamped. |
||
16 | */ |
||
17 | public $timestamps = false; |
||
18 | |||
19 | /** |
||
20 | * @var string The table associated with the model. |
||
21 | */ |
||
22 | protected $table = 'strings'; |
||
23 | |||
24 | /** |
||
25 | * The attributes that should be mutated to dates. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $dates = ['date_creation']; |
||
30 | |||
31 | public static function getStringId($context, $keyString) |
||
35 | |||
36 | public static function getOrCreateTranslation($context, $keyString, $languageId, $defaultLanguageId) |
||
47 | |||
48 | protected static function createString($context, $text, $defaultLanguageId) |
||
59 | } |
||
60 |