Get the imagine object

@return Imagine object
494210
public function imagine($renew = false) {
		if (empty($this->_imagine) || $renew === true) {
			$class = '\Imagine\\' . $this->config('engine') . '\Imagine';
			$this->_imagine = new $class();
			return $this->_imagine;
		}
		return $this->_imagine;
	}
1346517
public function toObject()
    {
        $output = array('cols' => array(), 'rows' => array());

        // Column Definitions
        foreach ($this->columns as $inputColumn) {
            $output['cols'][] = $inputColumn->toDefinitionObject();
        }

        // Rows
        foreach ($this->rows as $inputRow) {
            $row = array('c' => array());
            foreach ($inputRow->getCells() as $i => $cell) {
                if (null === $cell) {
                    $row['c'][] = null;
                } else {
                    $colType = $this->columns[$i]->getType();
                    $outputCell = array('v' => $colType->convertToCellValue($cell));
                    $stringVal = $colType->convertToStringVersion($cell);
                    if ($stringVal != null) {
                        $outputCell['f'] = trim($stringVal);
                    }
                    $row['c'][] = (object) $outputCell;
                }
            }

            $output['rows'][] = (object) $row;
        }

        return (object) $output;
    }
1158325
public T obtain () {
		T object = freeObjects.poll();
		return object != null ? object : create();
	}
663322
public static function getInstance()
    {
        if (self::$_instance === null) {
            self::$_instance = oxNew(__CLASS__);
        }

        return self::$_instance;
    }
83130
protected function createImagineInstance()
    {
        $driver = ConfigQuery::read("imagine_graphic_driver", "gd");

        switch ($driver) {
            case 'imagick':
                $image = new ImagickImagine();
                break;

            case 'gmagick':
                $image = new GmagickImagine();
                break;

            case 'gd':
            default:
                $image = new Imagine();
        }

        return $image;
    }
1259139
public function getConfigurationObject()
    {
        if (null === $this->configurationObject
            || $this->lastConfigurationHash !== $this->formObject->getHash()
        ) {
            $this->lastConfigurationHash = $this->formObject->getHash();
            $this->configurationObject = $this->getConfigurationObjectFromCache();
        }

        return $this->configurationObject;
    }
1187962
public static function get()
    {
        $instance = new static;

        $request = new Request($instance->functionCall, $instance->module);        

        $instance->fill($request->execute());

        return $instance;
    }
873642
public function copy()
	{
		$view = $this->getView();

		$view->downloadData = $this->toArray( $view->item, true );
		$view->downloadBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->downloadBody .= $client->copy();
		}

		return $this->render( $view );
	}
693486
public function getPayloadObject()
    {
        if (!isset($this->_dataObject) && !empty($this->payload)) {
            $this->_dataObject = unserialize($this->payload);
            $this->_dataObject->model = $this;
        }

        return $this->_dataObject;
    }
133053
protected function getTransformer()
    {
        if (is_callable($this->transformer) || $this->transformer instanceof TransformerAbstract) {
            return $this->transformer;
        }

        return Craft::createObject($this->transformer);
    }
1168290
protected function getObject()
	{
		if( !isset( $this->object ) )
		{
			$siteid = $this->context->getLocale()->getSiteId();
			$conf = array( 'siteid' => $this->context->getConfig()->get( 'madmin/cache/prefix' ) . $siteid );
			$this->object = \Aimeos\MW\Cache\Factory::create( 'Flow', $conf, $this->cache );
		}

		return $this->object;
	}
966242
protected function getExistingObject()
    {
        $state = StateQuery::create()
            ->findPk($this->getRequest()->get('state_id', 0))
        ;

        if (null !== $state) {
            $state->setLocale($this->getCurrentEditionLocale());
        }

        return $state;
    }
136187
public function copy()
	{
		$view = $this->getView();

		$view->hiddenData = $this->toArray( $view->item, true );
		$view->hiddenBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->hiddenBody .= $client->copy();
		}

		return $this->render( $view );
	}
1336980
public static function get()
    {
        if (self::$instance === null) {
            self::$instance = NoopTracer::create();
        }

        return self::$instance;
    }
913625
private function getPreviewObject()
    {
        $optimizer       = $this->getOptimizer();
        $pageSize        = $this->getPageSize();
        $queryText       = $this->getQueryText();
        $category        = $this->getCategory();
        $containerConfig = $this->getContainerConfiguration();

        return $this->previewModelFactory->create(
            [
                'optimizer'       => $optimizer,
                'containerConfig' => $containerConfig,
                'category'        => $category,
                'queryText'       => $queryText,
                'size'            => $pageSize,
            ]
        );
    }
826315
private function createImagineInstance()
    {
        $extension = mb_strtolower(\Craft::$app->getConfig()->getGeneral()->imageDriver);
        
        try {
            if ($extension === 'gd') {
                return new \Imagine\Gd\Imagine();
            }

            if ($extension === 'imagick') {
                return new \Imagine\Imagick\Imagine();
            }
        } catch (RuntimeException $e) {
            // just ignore for now
        }

        return null;
    }
650853
public function toObject()
        {
            $array = $this->get();
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $array[$key] = (new \PHY\Variable\Arr($value))->toObject();
                }
            }
            return (object)$array;
        }