Author: david
Date: Tue Jul 19 15:43:11 2011
New Revision: 9332
Log:
Amalgamate process description
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Tue Jul 19 15:39:31 2011
(r9331)
+++ trunk/lib/model/QubitDigitalObject.php Tue Jul 19 15:43:11 2011
(r9332)
@@ -755,11 +755,16 @@
}
/**
- * Derive file path for a digital object asset. All digital object paths are
- * keyed by information object id that is the nearest ancestor of the current
- * digital object. Because we may not know the id of the current digital
- * object yet (i.e. it hasn't been saved to the database yet), we pass
- * the parent digital object or information object.
+ * Derive file path for a digital object asset
+ *
+ * All digital object paths are keyed by information object id that is the
+ * nearest ancestor of the current digital object. Because we may not know
+ * the id of the current digital object yet (i.e. it hasn't been saved to the
+ * database yet), we pass the parent digital object or information object.
+ *
+ * To keep to a minimum the number of sub-directories in the uploads dir,
+ * we break up information object path by using first and second digits of
+ * the information object id as sub-directories (e.g. uploads/3/2/3235/).
*
* @param mixed Parent (QubitDigitalObject or QubitInformationObject)
* @return string asset file path
@@ -779,10 +784,6 @@
return false;
}
- // To keep to a minimum the number of sub-directories in the uploads dir,
- // we break up information object path by using first and second digits of
- // the information object id as sub-directories.
- // e.g. if infoObjectId=3235 then path='uploads/3/2/3235/'
$infoObjectId = (string) $infoObject->id;
return
'/'.sfConfig::get('app_upload_dir').'/'.$infoObjectId[0].'/'.$infoObjectId[1].'/'.$infoObjectId;
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.