phpDocumentor ItemAdd
UserInterface
[ class tree: ItemAdd ] [ index: ItemAdd ] [ all elements ]

Class: ItemAddFromWeb

Source Location: /modules/itemadd/ItemAddFromWeb.inc

Class ItemAddFromWeb

Class Overview

This plugin will handle the addition of items from other web pages.

Located in /modules/itemadd/ItemAddFromWeb.inc [line 33]

ItemAddPlugin
   |
   --ItemAddFromWeb

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ItemAddPlugin

ItemAddPlugin::getTitle()
Return a localized title for this plugin, suitable for display to the user
ItemAddPlugin::handleRequest()
Let the plugin handle the incoming request
ItemAddPlugin::isAppropriate()
Is this plugin appropriate at this time? Default is true.
ItemAddPlugin::loadTemplate()
Load the template with data from this plugin

[ Top ]
Method Summary
void   getTitle()  
void   handleRequest()  
void   isAppropriate()  
void   loadTemplate()  
array   _getMimeType()   Analyze url and available data to find mime type. Check:
  1. Parse url for file extension and map this to a mime type.
array   _getTypeName()   Analyze url and available data to find item type.

[ Top ]
Methods
getTitle  [line 477]

  void getTitle( )


API Tags:
See:  ItemAddPlugin::getTitle


Redefinition of:
ItemAddPlugin::getTitle()
Return a localized title for this plugin, suitable for display to the user

[ Top ]
handleRequest  [line 56]

  void handleRequest( $form, &$item, &$addController  )

Parameters:
   $form: 
   &$item: 
   &$addController: 

API Tags:
See:  ItemAddPlugin::handleRequest


Redefinition of:
ItemAddPlugin::handleRequest()
Let the plugin handle the incoming request

[ Top ]
isAppropriate  [line 38]

  void isAppropriate( )


API Tags:
See:  ItemAddPlugin::isAppropriate


Redefinition of:
ItemAddPlugin::isAppropriate()
Is this plugin appropriate at this time? Default is true.

[ Top ]
loadTemplate  [line 163]

  void loadTemplate( &$template, &$form, $item  )

Parameters:
   &$template: 
   &$form: 
   $item: 

API Tags:
See:  ItemAdd:loadTemplate


Redefinition of:
ItemAddPlugin::loadTemplate()
Load the template with data from this plugin

[ Top ]
_getMimeType  [line 372]

  array _getMimeType( string $url, [array $headers = null], [boolean $getFileName = false]  )

Analyze url and available data to find mime type. Check:

  1. Parse url for file extension and map this to a mime type.

2. Check for Content-Disposition http header than includes a filename and map this extension to a mime type. 3. Check for Content-Type http header and use that mime type.

Parameters:
string   $url:  url
array   $headers:  (optional) http response headers
boolean   $getFileName:  (optional) true to also figure out filename

API Tags:
Return:  GalleryStatus a status object string mime type string filename or null if not requested
Access:  private


[ Top ]
_getTypeName  [line 444]

  array _getTypeName( string $url, [string $htmlAttribute = null], [array $headers = null]  )

Analyze url and available data to find item type.

Parameters:
string   $url:  url
string   $htmlAttribute:  (optional) html attribute this url was parsed from
array   $headers:  (optional) http response headers

API Tags:
Return:  GalleryStatus a status object string type name
Access:  private


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:24:24 -0700 by phpDocumentor 1.3.0RC6