Ansel_ImageGenerator::__construct PHP Method

__construct() public method

Const'r
public __construct ( $params ) : Horde_ImageGenerator
return Horde_ImageGenerator
    public function __construct($params)
    {
        $this->_params = $params;
        if (!empty($params['image'])) {
            $this->_image = $params['image'];
        }
        $this->_style = $params['style'];
    }

Usage Example

Beispiel #1
0
 public function __construct($params)
 {
     parent::__construct($params);
     $this->title = _("Square Thumbnails");
     if (empty($this->_params['width'])) {
         $this->_params['width'] = $this->_style->width;
     }
     if (empty($this->_params['height'])) {
         $this->_params['height'] = $this->_style->height;
     }
 }
All Usage Examples Of Ansel_ImageGenerator::__construct