Class RepositoryInputOutputModuleManager

Description

The RepositoryInputOutModuleManager is responcible for sending records to the appropriate RepositoryInputOutputModule based on their Schema Formats.

  • copyright: 2004 Middlebury College
  • since: $Date: 2007/09/19 14:04:48 $
  • version: $Id: RepositoryInputOutputModuleManager.class.php,v 1.18 2007/09/19 14:04:48 adamfranco Exp $

Located in /polyphony/main/library/RepositoryInputOutputModules/RepositoryInputOutputModuleManager.class.php (line 30)


	
			
Method Summary
void assignConfiguration (object Properties $configuration)
void assignOsidContext (mixed $context, object OsidContext $context )
void createWizardSteps (object $record, object $wizard)
void createWizardStepsForPartStructures (object $record, object $wizard, array $partStructures)
string generateDisplay (mixed $repositoryId, mixed $assetId, object $record)
string generateDisplayForPartStructures (mixed $repositoryId, mixed $assetId, object $record, array $partStructures)
string getFileUrlForAsset (mixed $assetOrId, object Id $assetId)
string getFileUrlForRecord (mixed $assetOrId, mixed $fileRecord, object Id $assetId)
mixed getFirstImageOrFileRecordForAsset (mixed $assetOrId, object Id $assetId)
object OsidContext getOsidContext ()
string getThumbnailUrlForAsset (mixed $assetOrId, object Id $assetId)
string getThumbnailUrlForRecord (mixed $assetOrId, mixed $fileRecord, object Id $assetId)
boolean hasThumbnailNotIcon (mixed $assetOrId)
void updateFromWizard (object $record, object $wizard)
Methods
Constructor RepositoryInputOutputModuleManager (line 39)

Constructor, set up the relations of the Formats to Modules

  • since: 10/19/04
  • access: public
object RepositoryInputOutputModuleManager ()
assignConfiguration (line 77)

Assign the configuration of this Manager. Valid configuration options are as

follows: database_index integer database_name string

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
void assignConfiguration (object Properties $configuration)
  • object Properties $configuration: (original type: java.util.Properties)
assignOsidContext (line 105)

Assign the context of this OsidManager.

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: NULL_ARGUMENT
void assignOsidContext (mixed $context, object OsidContext $context )
  • object OsidContext $context
createWizardSteps (line 144)

Create wizard steps for editing the values of the specified Record and add them to the wizard.

  • since: 10/19/04
  • access: public
void createWizardSteps (object $record, object $wizard)
  • object $record
  • object $wizard: The wizard to add the steps to.
createWizardStepsForPartStructures (line 120)

Create wizard steps for editing the values of the specified Record and add them to the wizard.

  • since: 10/19/04
  • access: public
void createWizardStepsForPartStructures (object $record, object $wizard, array $partStructures)
  • object $record
  • object $wizard: The wizard to add the steps to.
  • array $partStructures: An ordered array of the partStructures to include.
generateDisplay (line 186)

Generate HTML for displaying the Record

  • since: 10/19/04
  • access: public
string generateDisplay (mixed $repositoryId, mixed $assetId, object $record)
  • object $record
generateDisplayForPartStructures (line 209)

Generate HTML for displaying particular fields of the Record

  • since: 10/19/04
  • access: public
string generateDisplayForPartStructures (mixed $repositoryId, mixed $assetId, object $record, array $partStructures)
  • object $record: The record to print.
  • array $partStructures: An array of partStructures to print.
getFileUrlForAsset (line 325)

Return the URL of a file for a given Asset. If the Asset has multiple files, only one will be returned.

  • return: The URL of the thumbnail
  • since: 7/22/05
  • access: public
string getFileUrlForAsset (mixed $assetOrId, object Id $assetId)
  • object Id $assetId
getFileUrlForRecord (line 358)

Return the URL of a file for a given Asset. If the Asset has multiple files, only one will be returned.

  • return: The URL of the thumbnail
  • since: 7/22/05
  • access: public
string getFileUrlForRecord (mixed $assetOrId, mixed $fileRecord, object Id $assetId)
  • object Id $assetId
getFirstImageOrFileRecordForAsset (line 418)

Answer the first image Record of the Asset, if none is availible, answer the first file of any time. If none are availible, answer FALSE.

  • since: 8/19/05
  • access: public
mixed getFirstImageOrFileRecordForAsset (mixed $assetOrId, object Id $assetId)
  • object Id $assetId
getOsidContext (line 90)

Return context of this OsidManager.

  • access: public
  • throws: object OsidException
object OsidContext getOsidContext ()
getThumbnailUrlForAsset (line 235)

Return the URL of a thumbnail image for a given Asset.

  • return: The URL of the thumbnail
  • since: 7/22/05
  • access: public
string getThumbnailUrlForAsset (mixed $assetOrId, object Id $assetId)
  • object Id $assetId
getThumbnailUrlForRecord (line 266)

Return the URL of a thumbnail image for a given Asset.

  • return: The URL of the thumbnail
  • since: 7/22/05
  • access: public
string getThumbnailUrlForRecord (mixed $assetOrId, mixed $fileRecord, object Id $assetId)
  • object Id $assetId
hasThumbnailNotIcon (line 482)

Answer true if the Asset or AssetId has a thumbnail rather than a default Icon

  • since: 12/4/06
  • access: public
boolean hasThumbnailNotIcon (mixed $assetOrId)
  • mixed $assetOrId: object Asset Id $assetOrID
updateFromWizard (line 166)

Get the values submitted in the wizard and update the Record with them.

  • since: 10/19/04
  • access: public
void updateFromWizard (object $record, object $wizard)
  • object $record
  • object $wizard

Documentation generated on Wed, 19 Sep 2007 10:26:01 -0400 by phpDocumentor 1.3.0RC3