[Solar-svn] Revision 2598

pmjones at solarphp.com pmjones at solarphp.com
Thu Jul 19 15:40:37 CDT 2007


tabs to 4-spaced


Modified: trunk/Solar/View/Helper/Image.php
===================================================================
--- trunk/Solar/View/Helper/Image.php	2007-07-17 12:36:30 UTC (rev 2597)
+++ trunk/Solar/View/Helper/Image.php	2007-07-19 20:40:37 UTC (rev 2598)
@@ -26,31 +26,31 @@
  * 
  */
 class Solar_View_Helper_Image extends Solar_View_Helper {
-	
-	/**
-	 * 
-	 * Returns an <img ... /> tag.
-	 * 
-	 * If an "alt" attribute is not specified, will add it from the
-	 * image [[php::basename() | ]].
-	 * 
-	 * @param string $src The href to the image source.
-	 * 
-	 * @param array $attribs Additional attributes for the tag.
-	 * 
-	 * @return string An <img ... /> tag.
-	 * 
-	 * @todo Add automated height/width calculation?
-	 * 
-	 */
-	public function image($src, $attribs = array())
-	{
-	    unset($attribs['src']);
-	    if (empty($attribs['alt'])) {
-	        $attribs['alt'] = basename($src);
-	    }
-	    
-	    return '<img src="' . $this->_view->publicHref($src) . '"'
-	         . $this->_view->attribs($attribs) . ' />';
-	}
+    
+    /**
+     * 
+     * Returns an <img ... /> tag.
+     * 
+     * If an "alt" attribute is not specified, will add it from the
+     * image [[php::basename() | ]].
+     * 
+     * @param string $src The href to the image source.
+     * 
+     * @param array $attribs Additional attributes for the tag.
+     * 
+     * @return string An <img ... /> tag.
+     * 
+     * @todo Add automated height/width calculation?
+     * 
+     */
+    public function image($src, $attribs = array())
+    {
+        unset($attribs['src']);
+        if (empty($attribs['alt'])) {
+            $attribs['alt'] = basename($src);
+        }
+        
+        return '<img src="' . $this->_view->publicHref($src) . '"'
+             . $this->_view->attribs($attribs) . ' />';
+    }
 }




More information about the Solar-svn mailing list