ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilFileDataForumDrafts Class Reference
+ Inheritance diagram for ilFileDataForumDrafts:
+ Collaboration diagram for ilFileDataForumDrafts:

Public Member Functions

 __construct (private readonly int $obj_id=0, private readonly int $draft_id=0)
 
 getObjId ()
 
 getPosId ()
 
 setPosId (int $posting_id)
 
 getForumPath ()
 
 getFilesOfPost ()
 
 moveFilesOfPost (int $new_frm_id=0)
 
 ilClone (int $new_obj_id, int $new_posting_id)
 
 delete (?array $posting_ids_to_delete=null)
 
 storeUploadedFiles ()
 
 unlinkFile (string $filename)
 
 getFileDataByMD5Filename (string $hashed_filename)
 
 unlinkFilesByMD5Filenames ($hashed_filename_or_filenames)
 
 deliverFile (string $file)
 
 deliverZipFile ()
 

Private Attributes

readonly ilFileDataForumDraftsRCImplementation $rc_implementation
 

Detailed Description

Definition at line 21 of file class.ilFileDataForumDrafts.php.

Constructor & Destructor Documentation

◆ __construct()

ilFileDataForumDrafts::__construct ( private readonly int  $obj_id = 0,
private readonly int  $draft_id = 0 
)

Definition at line 25 of file class.ilFileDataForumDrafts.php.

28  {
29  $this->rc_implementation = new ilFileDataForumDraftsRCImplementation(
30  $this->obj_id,
31  $this->draft_id
32  );
33  }

Member Function Documentation

◆ delete()

ilFileDataForumDrafts::delete ( ?array  $posting_ids_to_delete = null)
Parameters
list<int>|null$posting_ids_to_delete

Implements ilFileDataForumInterface.

Definition at line 73 of file class.ilFileDataForumDrafts.php.

Referenced by ilObjForumGUI\deleteSelectedDraft().

73  : bool
74  {
75  return $this->rc_implementation->delete($posting_ids_to_delete);
76  }
+ Here is the caller graph for this function:

◆ deliverFile()

ilFileDataForumDrafts::deliverFile ( string  $file)

Implements ilFileDataForumInterface.

Definition at line 104 of file class.ilFileDataForumDrafts.php.

Referenced by ilObjForumGUI\viewThreadObject().

104  : void
105  {
106  $this->rc_implementation->deliverFile($file);
107  }
+ Here is the caller graph for this function:

◆ deliverZipFile()

ilFileDataForumDrafts::deliverZipFile ( )

Implements ilFileDataForumInterface.

Definition at line 109 of file class.ilFileDataForumDrafts.php.

109  : bool
110  {
111  return $this->rc_implementation->deliverZipFile();
112  }

◆ getFileDataByMD5Filename()

ilFileDataForumDrafts::getFileDataByMD5Filename ( string  $hashed_filename)
Returns
array{path: string, filename: string, clean_filename: string}|null

Implements ilFileDataForumInterface.

Definition at line 91 of file class.ilFileDataForumDrafts.php.

91  : ?array
92  {
93  return $this->rc_implementation->getFileDataByMD5Filename($hashed_filename);
94  }

◆ getFilesOfPost()

ilFileDataForumDrafts::getFilesOfPost ( )
Returns
array<string, array{path: string, md5: string, name: string, size: int, ctime: string}>

Implements ilFileDataForumInterface.

Definition at line 58 of file class.ilFileDataForumDrafts.php.

Referenced by ilObjForumGUI\initReplyEditForm(), and ilObjForumGUI\renderDraftContent().

58  : array
59  {
60  return $this->rc_implementation->getFilesOfPost();
61  }
+ Here is the caller graph for this function:

◆ getForumPath()

ilFileDataForumDrafts::getForumPath ( )

Implements ilFileDataForumInterface.

Definition at line 50 of file class.ilFileDataForumDrafts.php.

50  : string
51  {
52  return $this->rc_implementation->getForumPath();
53  }

◆ getObjId()

ilFileDataForumDrafts::getObjId ( )

Implements ilFileDataForumInterface.

Definition at line 35 of file class.ilFileDataForumDrafts.php.

35  : int
36  {
37  return $this->rc_implementation->getObjId();
38  }

◆ getPosId()

ilFileDataForumDrafts::getPosId ( )

Implements ilFileDataForumInterface.

Definition at line 40 of file class.ilFileDataForumDrafts.php.

40  : int
41  {
42  return $this->rc_implementation->getPosId();
43  }

◆ ilClone()

ilFileDataForumDrafts::ilClone ( int  $new_obj_id,
int  $new_posting_id 
)

Implements ilFileDataForumInterface.

Definition at line 68 of file class.ilFileDataForumDrafts.php.

68  : bool
69  {
70  return $this->rc_implementation->ilClone($new_obj_id, $new_posting_id);
71  }

◆ moveFilesOfPost()

ilFileDataForumDrafts::moveFilesOfPost ( int  $new_frm_id = 0)

Implements ilFileDataForumInterface.

Definition at line 63 of file class.ilFileDataForumDrafts.php.

63  : bool
64  {
65  return $this->rc_implementation->moveFilesOfPost($new_frm_id);
66  }

◆ setPosId()

ilFileDataForumDrafts::setPosId ( int  $posting_id)

Implements ilFileDataForumInterface.

Definition at line 45 of file class.ilFileDataForumDrafts.php.

45  : void
46  {
47  throw new DomainException('Not implemented');
48  }

◆ storeUploadedFiles()

ilFileDataForumDrafts::storeUploadedFiles ( )

Implements ilFileDataForumInterface.

Definition at line 78 of file class.ilFileDataForumDrafts.php.

Referenced by ilObjForumGUI\saveAsDraftObject().

78  : bool
79  {
80  return $this->rc_implementation->storeUploadedFiles();
81  }
+ Here is the caller graph for this function:

◆ unlinkFile()

ilFileDataForumDrafts::unlinkFile ( string  $filename)

Implements ilFileDataForumInterface.

Definition at line 83 of file class.ilFileDataForumDrafts.php.

83  : bool
84  {
85  return $this->rc_implementation->unlinkFile($filename);
86  }
$filename
Definition: buildRTE.php:78

◆ unlinkFilesByMD5Filenames()

ilFileDataForumDrafts::unlinkFilesByMD5Filenames (   $hashed_filename_or_filenames)
Parameters
string|string[]$hashed_filename_or_filenames

Implements ilFileDataForumInterface.

Definition at line 99 of file class.ilFileDataForumDrafts.php.

Referenced by ilObjForumGUI\saveThreadAsDraftObject(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\updateThreadDraftObject().

99  : bool
100  {
101  return $this->rc_implementation->unlinkFilesByMD5Filenames($hashed_filename_or_filenames);
102  }
+ Here is the caller graph for this function:

Field Documentation

◆ $rc_implementation

readonly ilFileDataForumDraftsRCImplementation ilFileDataForumDrafts::$rc_implementation
private

Definition at line 23 of file class.ilFileDataForumDrafts.php.


The documentation for this class was generated from the following file: