summaryrefslogtreecommitdiff
path: root/LibertyAttachable.php
AgeCommit message (Collapse)AuthorFilesLines
2008-12-25simplify and clean up validation function by using realpathMax Kremmel1-10/+5
2008-11-05fix foldMax Kremmel1-2/+2
2008-10-25if verify fails anywhere along the class chain then process parent verify ↵wjames51-1/+6
checks so we get all errors in one shot - saving the user much headaches. also introduce verify service so services can report verification errors
2008-10-19add @deprecated doc tags where appropriateMax Kremmel1-1/+6
2008-10-08no code changes except for scanForAttachmentUsage() has been removed - we ↵Max Kremmel1-374/+357
have an attachment filter that takes care of that now. group related methods, fix comments, add (commented) deprecated notes to methods that have been replaced by methods in LibertyMime.
2008-07-24update some docsMax Kremmel1-4/+3
2008-07-24add notes to methods that are outdatedMax Kremmel1-2/+17
2008-06-29clean up LibertySystem loading: don't create gLibertySystem in class file - ↵Max Kremmel1-2/+1
we create it where it's first called: bit_setup_inc. LibertyAttachable doesn't need load LibertySystem. this is done in bit_setup_inc.php
2008-06-27fix logic to not throw errors when we can't find an attachment_id and update ↵Max Kremmel1-6/+13
users_users <image>_attachment_id columns when needed. contraints on these columns might cause problems when expunging attachments.
2008-06-27move LibertyMime::getPluginFunction into LibertySystem where it belongsMax Kremmel1-6/+5
2008-06-24use the LM getPluginFunction to allow for fallback to default mime handler.Max Kremmel1-2/+2
2008-06-08don't insert empty lines and make expungeMetaData statically availableMax Kremmel1-4/+8
2008-06-06add method to nuke meta data for an attachmentMax Kremmel1-2/+15
2008-05-28update docsMax Kremmel1-1/+2
2008-05-26make sure LibertyMime is available even when it hasn't been included from ↵Max Kremmel1-12/+22
any package. this is a very dirty hack and will eventually be removed when we have migrated everything to LibertyMime.
2008-05-25quick hack to calm LibertyMime during this development timewjames51-2/+6
2008-05-23rename liberty_meta_data to liberty_attachment_meta_data for clarity, add ↵Max Kremmel1-9/+9
indexes, update upgrade script to create correct tables
2008-05-23update meta functions to latest version - associated schema change will be ↵Max Kremmel1-44/+187
committed shortly. add method to confirm a path is valid - used before deleting a file to avoid problems
2008-05-16Syntax ErrorChristian Fowler1-3/+3
2008-05-16remove debugMax Kremmel1-2/+69
2008-05-15no code changes - only cleanup and doc updatesMax Kremmel1-36/+46
2008-05-15typoMax Kremmel1-2/+3
2008-05-14count position from the right of the file name to get extensionMax Kremmel1-2/+2
2008-05-13change getStorageSubDirName to return extension when the mime type returns ↵Max Kremmel1-5/+9
'application'
2008-05-11update docs and make sure mime type handed in is valid before we try to ↵Max Kremmel1-3/+3
extract subdir
2008-05-11getStorageSubDirName now returns a useful dirname based on mimetype handed inMax Kremmel1-3/+19
2008-05-11use dummy to avoid problems during LibertyMime testphaseMax Kremmel1-2/+4
2008-05-10SCHEMA CHANGE: added liberty_attachment_prefs to store attachment preferencesMax Kremmel1-7/+11
introducing a new layer on top LibertyAttachments to deal with file uploads supporting mimetype based plugins - ported from treasury
2008-05-09make LibertyAttachable::getAttachment statically accessibleMax Kremmel1-7/+5
2008-05-07write elseif instead of else if and don't split if conditions of the lines ↵Max Kremmel1-17/+11
aren't long to improve ledgibility
2008-01-02add missing functionJams H Thompson1-1/+36
2007-11-30Fix double include error when uploading a zip file with multiple images that ↵Nick Palmer1-2/+2
have photoshop data in them.
2007-11-19Add ability to unset the primary as well as the ability for content to turn ↵Nick Palmer1-27/+80
off the auto_primary setting behavior.
2007-11-01ini_get( 'short_open_tag' ) check because jpeg_metadata_tk REQUIRES ↵Christian Fowler1-3/+3
short_tags because that is the way it was written. feel free to fix something. XOXO spiderr
2007-10-10check pFile for meta data and name, not pParamHash['upload'] as it might ↵Christian Fowler1-13/+13
have been over-ridden
2007-09-26ensure that we never try to insert a duplicate row into liberty_attachments. ↵Max Kremmel1-2/+3
this is needed for the user portrait / avatar / logo storage. perhaps there's a cleaner way of doing this, but i can't think of one just now
2007-09-23Changes to get ajax attachments working again. You must turn on the new ↵Nick Palmer1-15/+8
storage.existing plugin to get them to work.
2007-09-21fix storing of attachment to include an update if attachment_id is provided, ↵Christian Fowler1-3/+7
also check for valid BitBase::verifyId( $storeRow[attachment_id] before inserting
2007-09-20change check of _file_overrides to isset incase you want to pass in an empty ↵Christian Fowler1-2/+2
array to avoid storing and avoid gobbling up _FILES
2007-09-20add _files_override to LIbertyAttachable::verify to control what gets sucked ↵Christian Fowler1-10/+26
up as an upload. fixes archive extraction in fisheye, and other obscure reasons to manually stuff a file upload hash
2007-09-19Preserve keys from $_FILE in STORAGE array so that we can tell which entry ↵Nick Palmer1-4/+4
in $_FILE got what attachment_id if we need to.
2007-09-19remove detachment remanantsMax Kremmel1-13/+4
2007-09-17sort by positional data if availableMax Kremmel1-3/+3
2007-09-17the first uploaded attachment is now set as primary be default - works with ↵Max Kremmel1-7/+22
single and multiple attachment uploads
2007-09-15make it possible to set a primary attachment with a simply radio button. U ↵Max Kremmel1-9/+46
comment attachment browser for now as well. UI needs lots more work but we will probably have to discuss on what we want to have visible and what wethe attachments tab is supposed to do
2007-09-15comment out primary_attachment_id to is_primary conversion crutchMax Kremmel1-2/+2
2007-09-15remove debugChristian Fowler1-3/+1
2007-09-15SCHEMA CHANGE: Major overhaul to liberty attachable by removing ↵Christian Fowler1-410/+120
attachment_map and only allow attachments to be wired to a single piece of content. removed attachment_map, single and multiple attachments are working, ajax code was removed, and should be put in a separate library/class to handle what to do with 'floating' files waiting for a store
2007-08-10optional all null args on getDisplayUriChristian Fowler1-2/+2
2007-08-02change include's for jpeg_metadata_tk to require_onceChristian Fowler1-6/+6