Author: ornicar2
Date: 2010-01-28 22:06:24 +0100 (Thu, 28 Jan 2010)
New Revision: 27287

Modified:
   plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmHtmlTag.php
Log:
[Diem]
- completed fluent interface on dmHtmlTag abstract class

Modified: plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmHtmlTag.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmHtmlTag.php   
2010-01-28 19:52:10 UTC (rev 27286)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/dmHtmlTag.php   
2010-01-28 21:06:24 UTC (rev 27287)
@@ -123,6 +123,11 @@
     return $this->addClass(str_replace('"', "'", json_encode($data)));
   }
 
+  public function style($style)
+  {
+    return $this->setOption('style', (string) $style);
+  }
+
   protected function getHtmlAttributes()
   {
     return 
$this->convertAttributesToHtml($this->prepareAttributesForHtml($this->getOptions()));
@@ -180,6 +185,8 @@
       $this->attributesToRemove,
       (array) $attribute
     );
+
+    return $this;
   }
   
   protected function addEmptyAttributeToRemove($attribute)
@@ -188,11 +195,15 @@
       $this->emptyAttributesToRemove,
       (array) $attribute
     );
+
+    return $this;
   }
   
   protected function addJavascript($keys)
   {
     $this->javascripts = array_merge($this->javascripts, (array) $keys);
+
+    return $this;
   }
 
   public function getJavascripts()
@@ -203,6 +214,8 @@
   protected function addStylesheet($keys)
   {
     $this->stylesheets = array_merge($this->stylesheets, (array) $keys);
+
+    return $this;
   }
 
   public function getStylesheets()

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to