[
'page_title' => _T("Automatic emails texts edition"),
'texts' => $texts,
- 'reflist' => $texts->getRefs($lang),
+ 'reflist' => $texts->getRefs(),
'langlist' => $this->i18n->getList(),
'cur_lang' => $lang,
'cur_ref' => $ref,
namespace Galette\Entity;
+use Galette\Core\I18n;
use Galette\Features\Replacements;
use Throwable;
use Analog\Analog;
);
try {
- $this->insert($this->zdb, [$values]);
+ $this->insert([$values]);
return $this->getTexts($ref, $lang);
} catch (Throwable $e) {
Analog::log(
*
* @return array: list of references used for texts
*/
- public function getRefs($lang)
+ public function getRefs(string $lang = I18n::DEFAULT_LANG)
{
try {
$select = $this->zdb->select(self::TABLE);
*
* @return void
*/
- private function insert($values)
+ private function insert(array $values)
{
$insert = $this->zdb->insert(self::TABLE);
$insert->values(