Changeset 1203 for branches/branch-1_6/admin/site_reader_remote.php
- Timestamp:
- Apr 19, 2006, 1:45:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/admin/site_reader_remote.php
r1107 r1203 36 36 var $site_files; 37 37 var $insert_attributes; 38 var $ update_attributes;38 var $metadata_attributes; 39 39 40 40 function RemoteSiteReader($url, $listing_url) … … 42 42 $this->site_url = $url; 43 43 $this->insert_attributes = array( 44 'tn_ext', 'representative_ext', 'has_high'44 'tn_ext', 45 45 ); 46 46 $this->update_attributes = array( 47 'representative_ext', 'has_high', 'filesize', 'width', 'height' 47 'tn_ext', 'representative_ext', 'has_high', 48 ); 49 $this->metadata_attributes = array( 50 'filesize', 'width', 'height' 48 51 ); 49 52 … … 86 89 } 87 90 88 $this-> update_attributes = array_merge(89 $this-> update_attributes,91 $this->metadata_attributes = array_merge( 92 $this->metadata_attributes, 90 93 explode(',', getAttribute($info_xml_element, 'metadata')) 91 94 ); … … 155 158 156 159 // returns the name of the attributes that are supported for 157 // update/synchronization according to listing.xml160 // files update/synchronization 158 161 function get_update_attributes() 159 162 { … … 161 164 } 162 165 163 // returns a hash of attributes (metadata+filesize+width,...) for file164 166 function get_element_update_attributes($file) 165 167 { … … 167 169 $file, 168 170 $this->update_attributes 171 ); 172 } 173 174 // returns the name of the attributes that are supported for 175 // metadata update/synchronization according to listing.xml 176 function get_metadata_attributes() 177 { 178 return $this->metadata_attributes; 179 } 180 181 // returns a hash of attributes (metadata+width,...) for file 182 function get_element_metadata($file) 183 { 184 return $this->get_element_attributes( 185 $file, 186 $this->metadata_attributes 169 187 ); 170 188 }
Note: See TracChangeset
for help on using the changeset viewer.