Author: ornicar2
Date: 2010-01-21 00:59:44 +0100 (Thu, 21 Jan 2010)
New Revision: 26959
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/link/dmLinkTag.php
Log:
[Diem]
- added dmLinkTag->currentClass and dmLinkTag->parentClass methods
Modified: plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/link/dmLinkTag.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/link/dmLinkTag.php
2010-01-20 23:39:48 UTC (rev 26958)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/view/html/link/dmLinkTag.php
2010-01-20 23:59:44 UTC (rev 26959)
@@ -121,12 +121,31 @@
/*
* Whether to display current links with span tag
+ * @return dmLinkTag $this
*/
public function currentSpan($bool)
{
return $this->setOption('current_span', (bool) $bool);
}
+ /*
+ * Sets the current css class
+ * @return dmLinkTag $this
+ */
+ public function currentClass($class)
+ {
+ return $this->setOption('current_class', (string) $class);
+ }
+
+ /*
+ * Sets the parent css class
+ * @return dmLinkTag $this
+ */
+ public function parentClass($class)
+ {
+ return $this->setOption('parent_class', (string) $class);
+ }
+
public function render()
{
return '<a'.$this->getHtmlAttributes().'>'.$this->renderText().'</a>';
--
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.