This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7515 - TranscodingAction: no need for the "properties" array
Summary: TranscodingAction: no need for the "properties" array
Status: RESOLVED FIXED
Alias: None
Product: mobileOK authoring tools
Classification: Unclassified
Component: Transcoding (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Sylvain Lequeux
QA Contact: fd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-07 08:18 UTC by fd
Modified: 2009-09-07 08:42 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-09-07 08:18:51 UTC
The translation mechanism that allows a user to override the name of the DDR property used by a transcoding action is just a particular use of the generic options mechanisms.

There is no apparent reason to separate DDR properties from generic options. The only difference is the need to have checkProperty AND checkOption, because of the specificities of a PropertyRef creation within a DDR.

In short, why is a "properties" subarray needed within the "options" array?
I'd remove it, and replace code such as:

[[
$properties = $this->getOption('properties');
$is_mobile_device = $this->getPropertyValuePr($properties['mobile_device']);
]]

by

[[
$property = $this->getOption('mobile_device');
$is_mobile_device = $this->getPropertyValuePr($property);
]]