10    protected ?
bool $no_meta_data_creation = 
null;
 
   15        $check_existing = 
$DIC->database()->queryF(
 
   16            'SELECT file_id FROM file_data WHERE file_id = %s',
 
   20        if ($check_existing->numRows() === 0) {
 
   21            $DIC->database()->insert(
'file_data', $this->getArrayForDatabase());
 
   23            $DIC->database()->update(
 
   25                $this->getArrayForDatabase(),
 
   26                [
'file_id' => [
'integer', $this->
getId()]]
 
   43        if (isset($this->ref_id)) {
 
   45            if ($default_visibility === 
"public") {
 
   52        if ($this->getMode() !== self::MODE_FILELIST) {
 
   53            $this->createMetaData();
 
   59        $this->no_meta_data_creation = $a_status;
 
   64        return !(bool) $this->no_meta_data_creation;
 
   69        return !(bool) $this->no_meta_data_creation;
 
   78        $md_obj = 
new ilMD($this->
getId(), 0, $this->getType());
 
   79        $technical = $md_obj->addTechnical();
 
   80        $technical->setSize($this->getFileSize());
 
   82        $format = $technical->addFormat();
 
   83        $format->setFormat($this->getFileType());
 
   92        $md = 
new ilMD($this->
getId(), 0, $this->getType());
 
   93        if (!is_object($md_gen = $md->getGeneral())) {
 
   96        $title = $this->appendSuffixToTitle($md_gen->getTitle(), $this->getFileName());
 
   97        $md_gen->setTitle($title);
 
  106        switch ($a_element) {
 
  110                $md = 
new ilMD($this->
getId(), 0, $this->getType());
 
  111                if (!is_object($md_technical = $md->getTechnical())) {
 
  115                foreach ($md_technical->getFormatIds() as 
$id) {
 
  116                    $md_format = $md_technical->getFormat(
$id);
 
  117                    $this->setFileType($md_format->getFormat());
 
  131        $md_obj = 
new ilMD($this->
getId(), 0, $this->getType());
 
  132        if (!is_object($technical = $md_obj->getTechnical())) {
 
  133            $technical = $md_obj->addTechnical();
 
  136        $technical->setSize($this->getFileSize());
 
  138        $format_ids = $technical->getFormatIds();
 
  139        if (count($format_ids) > 0) {
 
  140            $format = $technical->getFormat($format_ids[0]);
 
  141            $format->setFormat($this->getFileType());
 
  144            $format = $technical->addFormat();
 
  145            $format->setFormat($this->getFileType());
 
  148        $technical->update();
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
 
static _write(string $a_type, string $a_setting, string $a_value, int $a_user=0, int $a_block_id=0)
Write setting to database.
 
static _getDefaultVisibilityForRefId(int $a_ref_id)
Get default visibility for reference id.