delete_comcode_attachments (line 62)
Deletes all the attachments a given language code holds. Well, not quite! It deletes all references, and any attachments have through it, run out of references.
void
delete_comcode_attachments
(ID_TEXT $type, ID_TEXT $id, [?object $connection = NULL])
-
ID_TEXT
$type: The arbitrary type that the attached is for (e.g. download)
-
ID_TEXT
$id: The id in the set of the arbitrary types that the attached is for
-
?object
$connection: The database connection to use (NULL: standard site connection)
delete_lang_comcode_attachments (line 87)
This function is the same as delete_comcode_attachments, except that it deletes the language code as well.
void
delete_lang_comcode_attachments
(integer $lang_id, ID_TEXT $type, ID_TEXT $id, [?object $connection = NULL])
-
integer
$lang_id: The language id
-
ID_TEXT
$type: The arbitrary type that the attached is for (e.g. download)
-
ID_TEXT
$id: The id in the set of the arbitrary types that the attached is for
-
?object
$connection: The database connection to use (NULL: standard site connection)
update_lang_comcode_attachments (line 107)
Update a language code, in such a way that new attachments are created if they were specified.
integer
update_lang_comcode_attachments
(integer $lang_id, LONG_TEXT $text, ID_TEXT $type, ID_TEXT $id, [?object $connection = NULL], [boolean $backup_string = false], [?MEMBER $for_member = NULL])
-
integer
$lang_id: The language id
-
LONG_TEXT
$text: The new text
-
ID_TEXT
$type: The arbitrary type that the attached is for (e.g. download)
-
ID_TEXT
$id: The id in the set of the arbitrary types that the attached is for
-
?object
$connection: The database connection to use (NULL: standard site connection)
-
boolean
$backup_string: Whether to backup the language string before changing it
-
?MEMBER
$for_member: The member to use for ownership permissions (NULL: current member)
_delete_attachment (line 28)
Delete the specified attachment
void
_delete_attachment
(AUTO_LINK $id, object The $connection)
-
AUTO_LINK
$id: The attachment ID to delete
-
object The
$connection: database connection to use