id"; $this->readDataBase($sql); $this->containerid = abs($this->containerid); } function obtainPhysical () { $physical = new remositoryPhysicalFile(); $repository = remositoryRepository::getInstance(); $physical->setData($repository->Up_Path.'/'.$this->realname, $this->id, $this->isblob, $this->plaintext, true); return $physical; } function filePath () { if (1 == $this->metatype) { $repository = remositoryRepository::getInstance(); return $repository->Up_Path.'/'.$this->nameWithID(); } else return parent::filePath(); } function saveFile () { $this->containerid = -$this->containerid; //$sql = $this->insertSQL(); //remositoryRepository::doSQL($sql); if ($this->id == 0) $this->insertFileDB(); } }