-
Notifications
You must be signed in to change notification settings - Fork 1
Flickr_Form_Import
FlickrImport form class
- Class name: Flickr_Form_Import
- Namespace:
- Parent class: Omeka_Form
void Flickr_Form_Import::\Flickr_Form_Import::init()()
Construct the import form.
- Visibility: public
void Flickr_Form_Import::\Flickr_Form_Import::_registerElements()()
Define the form elements.
- Visibility: private
bool Flickr_Form_Import::\Flickr_Form_Import::ProcessPost()()
Process the form data and import the photos as necessary
- Visibility: public
- This method is static.
void Flickr_Form_Import::\Flickr_Form_Import::_importMultiple()()
Start an asynchronous background job to import a set of photos
- Visibility: private
- This method is static.
bool Flickr_Form_Import::\Flickr_Form_Import::_importSingle()()
Import a single photo in real time (not in the background).
This function relies on the import form output being in the $_POST variable. The form should be validated before calling this.
- Visibility: private
- This method is static.
array Flickr_Form_Import::\Flickr_Form_Import::_getCollectionOptions()()
Get an array to be used in formSelect() containing all collections.
- Visibility: private
array Flickr_Form_Import::\Flickr_Form_Import::_getRoleOptions()()
Get an array to be used in formSelect() containing possible user roles.
- Visibility: private
void Flickr_Form_Import::\Flickr_Form_Import::applyOmekaStyles()()
Overrides standard omeka form behavior to fix radio display bug
- Visibility: public
string Flickr_Form_Import::\Flickr_Form_Import::_getType()(string $url)
Get an array to be used in formSelect() containing possible roles for users.
- Visibility: private
- This method is static.
- $url string - <p>The Flickr url of the photos to import.</p>
string Flickr_Form_Import::\Flickr_Form_Import::_parsePhotoUrl()(string $url)
Parse a single photo url and return the photo ID
- Visibility: private
- This method is static.
- $url string - <p>The Flickr url of the photo to import.</p>
string Flickr_Form_Import::\Flickr_Form_Import::_resolveShortUrl()(string $shortUrl)
Resolve a shortened URL and return the full url
- Visibility: private
- This method is static.
- $shortUrl string - <p>The shortened Flickr url of the photo to import.</p>
string Flickr_Form_Import::\Flickr_Form_Import::_resolveRedirect()(string $url)
Resolve a redirect and return the redirected url
- Visibility: private
- This method is static.
- $url string - <p>The url which is redirected.</p>
bool Flickr_Form_Import::\Flickr_Form_Import::validateFlickrUrl()(string $url, array $args)
Validate the flickr url
- Visibility: public
- $url string - <p>The url to be validated</p>
- $args array - <p>An empty options array for now.</p>