19 declare(strict_types=1);
39 public function __construct(
int $field_id,
string $title,
string $description,
string $lang_key)
43 $this->db = $DIC->database();
83 $query =
'select * from ' . self::TABLE_NAME .
' ' .
86 $res = $this->db->query($query);
87 if (!
$res->numRows()) {
92 $query =
'update ' . self::TABLE_NAME .
' ' .
98 $this->db->manipulate($query);
101 public function delete():
void 103 $query =
'delete from ' . self::TABLE_NAME .
' ' .
106 $this->db->manipulate($query);
111 $query =
'insert into ' . self::TABLE_NAME .
' (field_id, title, lang_code, description) ' .
118 $this->db->manipulate($query);
__construct(int $field_id, string $title, string $description, string $lang_key)
ilAdvancedMDFieldTranslation constructor.
setDescription(string $description)
Class ilAdvancedMDFieldTranslation.