Added set accessors to Source objects

For Source plugins that can't parse all the required information before
creating the object, set accessors are needed to populate the
information afterwards.
This commit is contained in:
2010-10-12 19:06:27 +01:00
parent ec4cc8dad4
commit 8f88fba0ca
3 changed files with 56 additions and 0 deletions

View File

@@ -54,22 +54,42 @@ class RippingCluster_Rips_SourceTitle {
return $this->width;
}
public function setWidth($width) {
$this->width = $width;
}
public function height() {
return $this->height;
}
public function setHeight($height) {
$this->height = $height;
}
public function displayAspect() {
return $this->display_aspect;
}
public function setDisplayAspect($display_aspect) {
$this->display_aspect = $display_aspect;
}
public function pixelAspect() {
return $this->pixel_aspect;
}
public function setPixelAspect($pixel_aspect) {
$this->pixel_aspect = $pixel_aspect;
}
public function framerate() {
return $this->framerate;
}
public function setFramerate($framerate) {
$this->framerate = $framerate;
}
public function setDisplayInfo($width, $height, $display_aspect, $pixel_aspect, $framerate) {
$this->width = $width;
$this->height = $height;