public function renderImg($message, $extension = null, $size = null, $padding = null, $attribs = array())
    {
        if (isset($extension)) {
            if (is_array($extension)) {
                $attribs = $extension;
                $extension = null;
            } elseif (isset($size)) {
                if (is_array($size)) {
                    $attribs = $size;
                    $size = null;
                } elseif (isset($padding) && is_array($padding)) {
                    $attribs = $padding;
                    $padding = null;
                }
            }
        }

        return $this->renderer->render(self::IMG_TEMPLATE, array(
            'src'       => $this->assembleRoute($message, $extension, $size, $padding),
            'attribs'   => $attribs
        ));
    }
public function renderImg($message, $extension = null, $size = null, $padding = null, $attribs = array())
    {
        if (isset($extension)) {
            if (is_array($extension)) {
                $attribs = $extension;
                $extension = null;
            } elseif (isset($size)) {
                if (is_array($size)) {
                    $attribs = $size;
                    $size = null;
                } elseif (isset($padding) && is_array($padding)) {
                    $attribs = $padding;
                    $padding = null;
                }
            }
        }

        return $this->renderer->render(self::IMG_TEMPLATE, array(
            'src'       => $this->assembleRoute($message, $extension, $size, $padding),
            'attribs'   => $attribs
        ));
    }
public function renderImg ( $ message , $ extension = null , $ size = null , $ padding = null , $ attribs = array ( ) ) { if ( isset ( $ extension ) ) { if ( is_array ( $ extension ) ) { $ attribs = $ extension ; $ extension = null ; } elseif ( isset ( $ size ) ) { if ( is_array ( $ size ) ) { $ attribs = $ size ; $ size = null ; } elseif ( isset ( $ padding ) && is_array ( $ padding ) ) { $ attribs = $ padding ; $ padding = null ; } } } return $ this -> renderer -> render ( self :: IMG_TEMPLATE , array ( 'src' => $ this -> assembleRoute ( $ message , $ extension , $ size , $ padding ) , 'attribs' => $ attribs ) ) ; }
Renders a img tag pointing defined QR code
@param string $message
@param string|null $extension
@param int|null $size
@param null $padding
@param array $attribs
@return string
Renders a img tag pointing defined QR code