array('title', 'description')); public $itemName = 'Director File'; public $itemsName = 'Director Files'; protected function _deleteFiles($row = null) { if (is_array($this->_fileFields) && !empty($this->_fileFields)) { $adapter = new Qs_File_Transfer_Adapter_Db(); $path = constant('WWW_PATH') . '/' . App_DirectorFile_AbstractObj::DIRECTOR_PATH; $adapter->setDefaultDestination($path); if (null === $row) { if (false !== ($row = $this->table->findRow($this->getPrimaryKey()))) { $row = $row->toArray(); } } if (is_array($row) && !empty($row)) { foreach ($this->_fileFields as $name) { if (isset($row[$name]) && !empty($row[$name])) { $adapter->delete($row[$name], $name); } } } unset($adapter); } } }