Esempio n. 1
0
 /**
  * Internal function to return a Archive object from a row.
  * @param $row array
  * @return Archive
  */
 function &_returnArchiveFromRow(&$row)
 {
     $archive = new Archive();
     $archive->setArchiveId($row['archive_id']);
     $archive->setUserId($row['user_id']);
     $archive->setPublicArchiveId($row['public_archive_id']);
     $archive->setTitle($row['title']);
     $archive->setEnabled($row['enabled']);
     $archive->setUrl($row['url']);
     $archive->setHarvesterPluginName($row['harvester_plugin']);
     $archive->setSchemaPluginName($row['schema_plugin']);
     HookRegistry::call('ArchiveDAO::_returnArchiveFromRow', array(&$archive, &$row));
     return $archive;
 }