public function getTransformation($name) {
        if (isset($this->handlers[$name])) {
            return $this->handlers[$name];
        } else if (!isset($this->transformations[$name]) || !$this->transformations[$name]) {
            return false;
        }

        // The listener has not been initialized
        $transformation = $this->transformations[$name];

        if (is_callable($transformation) && !($transformation instanceof Transformation)) {
            $transformation = $transformation();
        }

        if (is_string($transformation)) {
            $transformation = new $transformation();
        }

        foreach ($this->initializers as $initializer) {
            $initializer->initialize($transformation);
        }

        $this->handlers[$name] = $transformation;

        return $this->handlers[$name];
    }
public function getTransformation($name) {
        if (isset($this->handlers[$name])) {
            return $this->handlers[$name];
        } else if (!isset($this->transformations[$name]) || !$this->transformations[$name]) {
            return false;
        }

        // The listener has not been initialized
        $transformation = $this->transformations[$name];

        if (is_callable($transformation) && !($transformation instanceof Transformation)) {
            $transformation = $transformation();
        }

        if (is_string($transformation)) {
            $transformation = new $transformation();
        }

        foreach ($this->initializers as $initializer) {
            $initializer->initialize($transformation);
        }

        $this->handlers[$name] = $transformation;

        return $this->handlers[$name];
    }
public function getTransformation ( $ name ) { if ( isset ( $ this -> handlers [ $ name ] ) ) { return $ this -> handlers [ $ name ] ; } else if ( ! isset ( $ this -> transformations [ $ name ] ) || ! $ this -> transformations [ $ name ] ) { return false ; } // The listener has not been initialized $ transformation = $ this -> transformations [ $ name ] ; if ( is_callable ( $ transformation ) && ! ( $ transformation instanceof Transformation ) ) { $ transformation = $ transformation ( ) ; } if ( is_string ( $ transformation ) ) { $ transformation = new $ transformation ( ) ; } foreach ( $ this -> initializers as $ initializer ) { $ initializer -> initialize ( $ transformation ) ; } $ this -> handlers [ $ name ] = $ transformation ; return $ this -> handlers [ $ name ] ; }
Get the transformation registered for the given transformation name

@param string $name Name of transformation
@return Transformation
Get the transformation registered for the given transformation name