Source for file File.php

Documentation is available at File.php

  1. <?php
  2. {
  3.     protected function _buildNode()
  4.     {
  5.         $fileElement $this->_createElement('file'null$this->_record->id);
  6.         $srcElement $this->_createElement('src'WEB_ARCHIVE "/{$this->_record->archive_filename}"null$fileElement);
  7.         $authenticationElement $this->_createElement('authentication'$this->_record->authenticationnull$fileElement);
  8.         $this->_buildElementSetContainerForRecord($this->_record$fileElement);
  9.         
  10.         if (in_array($this->_contextarray('file'))) {
  11.             $item get_db()->getTable('Item')->find($this->_record->item_id);
  12.             $itemOmekaXml new Omeka_Output_Xml_Item($item$this->_context);
  13.             $itemElement $this->_doc->importNode($itemOmekaXml->_nodetrue);
  14.             $fileElement->appendChild($itemElement);
  15.         }
  16.         
  17.         $this->_node = $fileElement;
  18.     }
  19. }

Documentation generated on Thu, 15 Oct 2009 15:37:08 -0400 by phpDocumentor 1.4.2