Author: ornicar2
Date: 2010-02-01 19:41:47 +0100 (Mon, 01 Feb 2010)
New Revision: 27390
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/lib/view/dmHelper.php
Log:
Complete previous commit
Modified: plugins/diemPlugin/trunk/dmCorePlugin/lib/view/dmHelper.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/view/dmHelper.php 2010-02-01
18:26:38 UTC (rev 27389)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/view/dmHelper.php 2010-02-01
18:41:47 UTC (rev 27390)
@@ -51,21 +51,17 @@
return get_component($moduleName, $componentName, $vars);
}
-
-
- /*
- * a, class='tagada ergrg' id=zegf, contenu
- * a class=tagada id=truc, contenu
- * a, contenu
- * a, array(), contenu
- * a#truc.tagada, contenu
- */
+
+ public function open($tagName, array $opt = array())
+ {
+ return $this->tag($tagName, $opt, false, false);
+ }
public function £o($tagName, array $opt = array())
{
- return $this->£($tagName, $opt, false, false);
+ return $this->open($tagName, $opt);
}
- public function £c($tagName)
+ public function close($tagName)
{
if ($pos = strpos($tagName, '.') !== false)
{
@@ -89,8 +85,12 @@
return '</'.$tagName.'>';
}
+ public function £c($tagName)
+ {
+ return $this->close($tagName);
+ }
- public function £($tagName, $opt = array(), $content = false, $openAndClose
= true)
+ public function tag($tagName, $opt = array(), $content = false,
$openAndClose = true)
{
if (!($tagName = trim($tagName)))
{
@@ -215,13 +215,21 @@
return $tag;
}
+ public function £($tagName, $opt = array(), $content = false, $openAndClose
= true)
+ {
+ return $this->tag($tagName, $opt, $content, $openAndClose);
+ }
- public function £link($source = null)
+ public function link($source = null)
{
return
$this->serviceContainer->getService('link_tag_factory')->buildLink($source);
}
+ public function £link($source = null)
+ {
+ return $this->link($source);
+ }
- public function £media($source)
+ public function media($source)
{
try
{
@@ -239,14 +247,14 @@
throw $e;
}
- return $this->£media(null);
+ return $this->media(null);
}
$serviceName = 'media_tag_'.$resource->getMime();
if (!$this->serviceContainer->hasService($serviceName))
{
- throw new dmException('£media can not display '.$source.' : missing
service '.$serviceName);
+ throw new dmException('helper->media can not display '.$source.' :
missing service '.$serviceName);
}
$media = $this->serviceContainer->getService($serviceName);
@@ -263,11 +271,19 @@
return $media;
}
+ public function £media($source)
+ {
+ return $this->media($source);
+ }
- public function £table()
+ public function table()
{
return $this->serviceContainer->get('table_tag');
}
+ public function £table()
+ {
+ return $this->table();
+ }
public function getStylesheetWebPath($asset)
{
--
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.