phpdoc
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 17 Sep 2010 17:21:35 +0000 (13:21 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 17 Sep 2010 17:21:35 +0000 (13:21 -0400)
ansel/lib/ImageGenerator.php

index fa036ff..983d027 100644 (file)
@@ -39,11 +39,11 @@ class Ansel_ImageGenerator
     protected $_dimensions = array();
 
     /**
-     * Cache the style information array
+     * Cache the style
      *
-     * @var array
+     * @var Ansel_Style
      */
-    protected $_style = array();
+    protected $_style;
 
     /**
      * Array of required, supported features for this ImageGenerator to work
@@ -53,6 +53,13 @@ class Ansel_ImageGenerator
     public  $need = array();
 
     /**
+     * Human readable title for this thumbnail style.
+     *
+     * @var string
+     */
+    public $title;
+
+    /**
      * Const'r
      *
      * @return Horde_ImageGenerator
@@ -93,7 +100,7 @@ class Ansel_ImageGenerator
      * @return Ansel_ImageGenerator
      * @throws Ansel_Exception
      */
-    function factory($type, $params = array())
+    static public function factory($type, $params = array())
     {
         $type = basename($type);
         $class = 'Ansel_ImageGenerator_' . $type;