siriux_photos_PhotoPhoto class
Located in /net/siriux/photos/Photo.php (line 21)
siriux_photos_Photo
siriux_photos_Photo
([int $id = FALSE], [midcom_helper_configuration $config = null], [MidgardTopic $topic = null])
Creates a new instance and get Photo by id
If $config is set, the component context is ignored. Configuration is used directly, and the L10n libs are fetched from MidCOM.
Approve the Photo using the Metadata framework.
This is a backwards compatibility function and should no longer be used.
Creates a new photo based on a midcom datamanager driven form.
see the admin class for the big picture.
You should be aware, that this method will use a different schema then the upload form, as the upload form is a subset of the real data schema. This is especially important for the bulk upload feature.
Gets a Photo by id or by object
Indexes the article if the MidCOM indexer is enabled, otherwise, this is a null operation.
It will override the abstract automatically generated by the datamanager prepending it with an img link to the thumbnail.
As a side effect, it will invalidate the content cache modules related to this photo.
This function will regenerate view and thumbnail images of the current Photo.
This function rereads the EXIF data accociated with this image.
Any data currently set will be overwritten.
If no image is set (e.g. empty or not loaded article), this function will fail silently.
Rotate the view and thumbnail image.
This does *not* affect the original image.
Any error will trigger an immediate error page.
Stores the XML-formatted notes as-is
TODO: Parse the XML into data? or at least index it
This function synchronizes the article created timestamp with the value entered in the URL field, which holds the EXIF taken timestamp.
Synchronization is only done, if that timestamp is non-zero.
Unapprove the Photo using the metadata framework
This is a backwards compatibility function and should no longer be used.
Checks, if you need to resize the image file no meet the constraints of the image. If the image can't be recognized by getimagesize, the function will always return true to force an imagemagic conversion attempt.
Generatres the preview and thumbnail JPEG image attachements.
Gets EXIF data from the fullscale image and stores it in the Photo Article using the mapping configured in the component.
The corresponding configuration value is of the form exiftag:dmfieldname. It supports only parameters as storage, so if you write "FNumber:fnumber" it will take the value of the EXIF Tag "FNumber" and store it in the parameter "data_fnumber" in the Domain "midcom.helper.datamanager". You can then define a field in the datamanager namend "fnumber" with the storage location "parameter", and the DM will be able to work with it.
The configuration key may have multiple, comma-separated pairs.
Note, that the taken value, part of the default schema and stored in the URL field of the record, will automatically be populated with the timestamp stored in FileDateTime EXIF Tag.
This function requires the EXIF Functions of PHP available. (read_exif_data).
This is the JHead Version of the EXIF Extractor.
Safe to use prior to PHP 4.2.0
It does not support the exif mapping feature, only the taken timestamp is extracted here.
This is the PHP Version of the EXIF Extractor.
Safe to use as of PHP 4.2.0
This is the absolute Fallback in case no EXIF Readers are available. It uses the current Timestamp as a value.
Note, that since this only works during upload, not later, the function will not overwrite any value already in place.
Always safe.
It does not support the exif mapping feature, only the taken timestamp is extracted here.
Scales the image in the Attachment to match the given constraints and store ist as $attname on the current article.
Images will be postprocessed with imagemagick using these scaling filters: -unsharp 1x5 -modulate 100,110,100 -gamma 0.95
General helper, that stores an image file as attachment and sets size parameters size.x, size.y, size.bytes, size.mimetype
Stores the image GUIDs to the extra2 field of the current article.
They will be separated by pipes and in the order fullscale, view, thumbnail.
General helper, that updates an image file in an existing attachment and resets size parameters size.x, size.y, size.bytes, size.mimetype
Writes a copy of an image to a temporary file for processing with tools like EXIF-Reader or imagemagick.
The callee is responsible for unlinking the file after usage.
Writes a copy of the original image to a temporary file for processing with tools like EXIF-Reader or imagemagick.
The callee is responsible for unlinking the file after usage.
This is a wrapper for writeAttachmentTmpFile().
Documentation generated on Mon, 21 Nov 2005 18:20:58 +0100 by phpDocumentor 1.3.0RC3