You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/08 13:54:46 UTC

svn commit: r664487 - /incubator/shindig/trunk/php/src/gadgets/ViewSpec.php

Author: chabotc
Date: Sun Jun  8 04:54:46 2008
New Revision: 664487

URL: http://svn.apache.org/viewvc?rev=664487&view=rev
Log:
Adds SHINDIG-358 preferedHeight and preferedWidth per content section support

Modified:
    incubator/shindig/trunk/php/src/gadgets/ViewSpec.php

Modified: incubator/shindig/trunk/php/src/gadgets/ViewSpec.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/ViewSpec.php?rev=664487&r1=664486&r2=664487&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/ViewSpec.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/ViewSpec.php Sun Jun  8 04:54:46 2008
@@ -30,6 +30,8 @@
 	public $quirks;
 	public $content;
 	public $view;
+	public $preferedHeight;
+	public $preferedWidth;
 	
 	public function __construct($name, $gadgetContent)
 	{
@@ -37,6 +39,8 @@
 		$this->name = $name;
 		$this->view = isset($attributes['view']) ? trim($attributes['view']) : '';
 		$this->quirks = trim($attributes['quirks']);
+		$this->preferedHeight = isset($attributes['preferedHeight']) ? trim($attributes['preferedHeight']) : '';
+		$this->preferedWidth = isset($attributes['preferedWidth']) ? trim($attributes['preferedWidth']) : '';
 		if (empty($this->quirks)) {
 			$this->quirks = true;
 		} else {