3 declare(strict_types=1);
25 public function __construct(
int $field_id,
string $title,
string $description,
string $lang_key)
29 $this->db = $DIC->database();
69 $query =
'select * from ' . self::TABLE_NAME .
' ' .
73 if (!
$res->numRows()) {
78 $query =
'update ' . self::TABLE_NAME .
' ' .
84 $this->db->manipulate(
$query);
87 public function delete():
void 89 $query =
'delete from ' . self::TABLE_NAME .
' ' .
92 $this->db->manipulate(
$query);
97 $query =
'insert into ' . self::TABLE_NAME .
' (field_id, title, lang_code, description) ' .
104 $this->db->manipulate(
$query);
__construct(int $field_id, string $title, string $description, string $lang_key)
ilAdvancedMDFieldTranslation constructor.
setDescription(string $description)
Class ilAdvancedMDFieldTranslation.