Instanciate a new Presenter for this Model or get the previously cached one.

@return Presenter
323128
protected function getPresenter()
	{
		if ($this->hasPresenter()) {
			if (!$this->presenterInstance) {
				$this->presenterInstance = new $this->presenter($this);
			}
		} else {
			if (!$this->presenterInstance) {
				$this->presenterInstance = new Presenter($this);
			}
		}
		
		return $this->presenterInstance;
	}
625272
def presenter(self, presenter_name):
		
		if presenter_name in self.__presenters.keys():
			return self.__presenters[presenter_name]
257438
public static function getInstance()
    {
        $classAwake  = new ClassAwake();
        $viewHelpers = $classAwake->wakeByInterfaces(
            array(
                __DIR__,
            ),
            'CrudGenerator\View\ViewHelperFactoryInterface'
        );

        return new View(new ViewRenderer($viewHelpers));
    }
599348
function GetPhreezer()
	{
		if ($this->phreezer == null)
		{
			if (self::$DEBUG_MODE)
			{
				require_once("verysimple/Phreeze/ObserveToSmarty.php");
				$observer = new ObserveToSmarty($this->GetRenderEngine());
				$this->phreezer = new Phreezer(self::$CONNECTION_SETTING, $observer);
			}
			else
			{
				$this->phreezer = new Phreezer(self::$CONNECTION_SETTING);
			}

			if (self::$LEVEL_2_CACHE)
			{
				$this->phreezer->SetLevel2CacheProvider( self::$LEVEL_2_CACHE, SELF::LEVEL_2_CACHE_TEMP_PATH );
				$this->phreezer->ValueCacheTimeout = self::$LEVEL_2_CACHE_TIMEOUT;
			}
		}

		return $this->phreezer;
	}
1292387
public function loadPresenter($presenterClassName)
    {
        if (
            !class_exists($presenterClassName)
            || !is_subclass_of($presenterClassName, 'Subbly\\Presenter\\Presenter')
        ) {
            return;
        }

        $this->presenter = call_user_func(array($presenterClassName, 'create'), array(
            'params' => $this->getParams(),
        ));
    }
72720
public function newInstance()
    {
        $class = get_called_class();
        $instance = new $class();
        $instance->setSerializer($this->getSerializer());
        $instance->setItemConverter($this->getItemConverter()->newInstance());
        return $instance;
    }
788274
public function present()
    {
        if (is_null($this->presenter)) {
            throw new \InvalidArgumentException('Presenter is not defined.');
        }

        return $this->getContainer()->make($this->presenter, array($this));
    }
39633
public function getCacheAdapter()
    {
        if (!$this->cacheAdapter) {
            $this->setCacheAdapter(new Cache\Adapter\FileSystem());
        }

        return $this->cacheAdapter;
    }
1355742
public void getPresenter(final Consumer<Object> presenterConsumer) {

		presenterProperty.addListener(
				(final ObservableValue<? extends Object> o, final Object oldValue, final Object newValue) -> {
					presenterConsumer.accept(newValue);
				});
	}
530997
public static function instance(): self
    {
        if (!self::$instance) {
            self::$instance = new self(
                StubFactory::instance(),
                StubVerifierFactory::instance(),
                EmptyValueFactory::instance(),
                AssertionRenderer::instance(),
                ExceptionAssertionRecorder::instance(),
                Invoker::instance()
            );
        }

        return self::$instance;
    }
579063
public function initialize()
    {
        if ($this->isInformationCached()) {

            $this->information = $this->retrieveInformationFromCache();

        } else {

            $this->information = $this->collector->collect();
        }

        $this->fillModelClassIndex();

        $this->initialized = true;

        return $this;
    }
253050
public function isPresentable($presenter = null)
    {
        if (is_bool($presenter)) {
            $this->presentable = $presenter;
        }

        return $this->presentable;
    }
802251
public function getEventManager()/*# : EventManagerInterface */
    {
        // create the default slave
        if (is_null($this->event_manager)) {
            // add own classname as scope
            $this->setEventManager(new EventDispatcher(get_class($this)));
        }

        // attach self to the event manager if not yet
        $this->attachSelfToEventManager();

        return $this->event_manager;
    }
347759
public function getRenderer()
    {
        if (null === $this->renderer) {
            if (isset($this->rendererService)) {
                $renderer = $this->rendererService;
                if (! $renderer instanceof Renderer\AbstractRenderer) {
                    throw new \Exception(
                        'Renderer service must implement "ZfcDatagrid\Renderer\AbstractRenderer"'
                    );
                }
                $renderer->setOptions($this->getOptions());
                $renderer->setMvcEvent($this->getMvcEvent());
                if ($this->getToolbarTemplate() !== null) {
                    $renderer->setToolbarTemplate($this->getToolbarTemplate());
                }
                $renderer->setToolbarTemplateVariables($this->getToolbarTemplateVariables());
                $renderer->setViewModel($this->getViewModel());
                if ($this->hasTranslator()) {
                    $renderer->setTranslator($this->getTranslator());
                }
                $renderer->setTitle($this->getTitle());
                $renderer->setColumns($this->getColumns());
                $renderer->setRowStyles($this->getRowStyles());
                $renderer->setCache($this->getCache());
                $renderer->setCacheId($this->getCacheId());

                $this->renderer = $renderer;
            } else {
                throw new \Exception(
                    sprintf(
                        'Renderer service was not found, please register it: "zfcDatagrid.renderer.%s"',
                        $this->getRendererName()
                    )
                );
            }
        }

        return $this->renderer;
    }
587627
public function getReplicator()
    {
        if (!isset($this->replicator)) {
            $this->replicator = $this->createReplicator();
        }
        return $this->replicator;
    }
966163
public function navigate()
	{
		if ($this->url)
		{
			$this->session->url($this->url);
		}
		else
		{
			$this->session->navigate($this->presenterName, $this->presenterParameters);
		}
		return $this;
	}
794992
protected function makeNewContainer()
    {
        $container = new Container();
        $container->classSet($this->entityClass);
        $container->setPropertyMapper( PropertyMapperEntityData::class );
        return $container;
    }