Get the entry formatter to use
@return \Concrete\Core\Express\Entry\Formatter\EntryFormatterInterface
496404
protected function getEntryFormatter()
    {
        if (!$this->entryFormatter) {
            $this->entryFormatter = Application::getFacadeApplication()->make(EntryFormatterInterface::class);
        }

        return $this->entryFormatter;
    }
590860
public function getFormHydrator()
    {
        if (!$this->formHydrator instanceof Hydrator\HydratorInterface) {
            $this->setFormHydrator($this->getServiceManager()->get('zfcuser_register_form_hydrator'));
        }

        return $this->formHydrator;
    }
99325
protected function getFormElementManager()
    {
        if (null === $this->formElementManager) {
            $this->formElementManager = $this->getServiceLocator()
                    ->get('FormElementManager');
        }
        return $this->formElementManager;
    }
503050
public function getBatchFormatter(): FormatterInterface
    {
        if (!$this->batchFormatter) {
            $this->batchFormatter = $this->getDefaultBatchFormatter();
        }

        return $this->batchFormatter;
    }
864810
protected function getInternalFormatter()
    {
        $formatter = IntlDateFormatter::create(
            i18n::config()->uninherited('default_locale'),
            IntlDateFormatter::NONE,
            IntlDateFormatter::MEDIUM,
            date_default_timezone_get() // Default to server timezone
        );
        $formatter->setLenient(false);

        // Note we omit timezone from this format, and we assume server TZ always.
        $formatter->setPattern(DBTime::ISO_TIME);

        return $formatter;
    }
60366
public function getHeaderCellContent()
	{
		if($this->grid->enableSorting && $this->sortable && $this->name!==null)
			return $this->grid->dataProvider->getSort()->link($this->name,$this->header,array('class'=>'sort-link'));
		elseif($this->name!==null && $this->header===null)
		{
			if($this->grid->dataProvider instanceof CActiveDataProvider)
				return CHtml::encode($this->grid->dataProvider->model->getAttributeLabel($this->name));
			else
				return CHtml::encode($this->name);
		}
		else
			return parent::getHeaderCellContent();
	}
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;
	}
502199
protected function getUriFormater() : UriFormaterInterface
    {
        if ($this->formater === null)
        {
            $this->formater = new UriFormater();
        }
        
        return $this->formater;
    }
74882
public function getIterator()
    {
        $iter = parent::getIterator();

        // sorting support
        if ($this->sortby) {
            $desc = ($this->sortby_db[0] == '-');
            $order = ltrim($this->sortby_db, '-');
            $this->applySorting($iter, $order, $desc);
        }

        return $iter;
    }
573482
protected function _getDispatcher()
    {
        if (!self::$_dispatcher)
        {
            JPluginHelper::importPlugin('finder');
            self::$_dispatcher = JEventDispatcher::getInstance();
        }

        return self::$_dispatcher;
    }
821126
public function generateTranslateEntry()
    {
        if (is_null($this->getCrawler())) {
            throw new ParserContextException('You can\'t generate translate entry without having a crawler initialized.');
        }

        $parameters = [
            'language_from' => $this->getLanguageFrom(),
            'language_to' => $this->getLanguageTo()
        ];

        // if data is coming from $_SERVER, load it ...
        if ($this->getParser()->getConfigProvider() instanceof ServerConfigProvider) {
            $this->getParser()->getConfigProvider()->loadFromServer();
        }

        // managing auto-discover for title
        if ($this->getParser()->getConfigProvider()->getAutoDiscoverTitle()) {
            $title = 'Empty title';

            foreach ($this->getCrawler()->filter('title') as $element) {
                if ($element->nodeValue != '') {
                    $title = $element->nodeValue;
                }
            }

            $parameters['title'] = $title;
        }

        $parameters = array_merge($parameters, $this->getParser()->getConfigProvider()->asArray());
        $this->translateEntry = new TranslateEntry($parameters);

        return $this->translateEntry;
    }
721469
public function format($mask, Entry $entry)
    {
        return $this->formatter->format($mask, function ($key) use ($entry) {
            if ($key === 'id') {
                return $entry->getID();
            }
            
            $attribute = $entry->getAttribute($key);
            if ($attribute) {
                return $attribute;
            }

            $association = $entry->getAssociation($key);
            if (is_object($association)) {
                return $association->getSelectedEntry()->getLabel();
            }
        });
    }
681968
public function getFormatter()
    {
        if ($this->formatter !== null) {
            return $this->formatter;
        }

        if (class_exists('PHPUnit_Runner_Version', false)) {
            if ($this->type === "summary") {
                $this->formatter = new SummaryPHPUnitResultFormatter5($this->parent);
            } elseif ($this->type === "clover") {
                $this->formatter = new CloverPHPUnitResultFormatter5($this->parent);
            } elseif ($this->type === "xml") {
                $this->formatter = new XMLPHPUnitResultFormatter5($this->parent);
            } elseif ($this->type === "plain") {
                $this->formatter = new PlainPHPUnitResultFormatter5($this->parent);
            } elseif ($this->type === "crap4j") {
                $this->formatter = new Crap4JPHPUnitResultFormatter5($this->parent);
            } else {
                throw new BuildException("Formatter '" . $this->type . "' not implemented");
            }
        } elseif (\version_compare('6', \PHPUnit\Runner\Version::id(), '>=')
            && \version_compare('7', \PHPUnit\Runner\Version::id(), '<')
        ) {
            if ($this->type === "summary") {
                $this->formatter = new SummaryPHPUnitResultFormatter6($this->parent);
            } elseif ($this->type === "clover") {
                $this->formatter = new CloverPHPUnitResultFormatter6($this->parent);
            } elseif ($this->type === "xml") {
                $this->formatter = new XMLPHPUnitResultFormatter6($this->parent);
            } elseif ($this->type === "plain") {
                $this->formatter = new PlainPHPUnitResultFormatter6($this->parent);
            } elseif ($this->type === "crap4j") {
                $this->formatter = new Crap4JPHPUnitResultFormatter6($this->parent);
            } else {
                throw new BuildException("Formatter '" . $this->type . "' not implemented");
            }
        } else {
            if ($this->type === "summary") {
                $this->formatter = new SummaryPHPUnitResultFormatter7($this->parent);
            } elseif ($this->type === "clover") {
                $this->formatter = new CloverPHPUnitResultFormatter7($this->parent);
            } elseif ($this->type === "xml") {
                $this->formatter = new XMLPHPUnitResultFormatter7($this->parent);
            } elseif ($this->type === "plain") {
                $this->formatter = new PlainPHPUnitResultFormatter7($this->parent);
            } elseif ($this->type === "crap4j") {
                $this->formatter = new Crap4JPHPUnitResultFormatter7($this->parent);
            } else {
                throw new BuildException("Formatter '" . $this->type . "' not implemented");
            }
        }

        return $this->formatter;
    }
677403
public function getFormatter()
    {
        $fmt = $this->settings->format;
        $formatter = null;
        if (!is_string($fmt) && is_subclass_of($fmt, 'Luminous\\Formatters\\Formatter')) {
            $formatter = clone $fmt;
        } elseif ($fmt === 'html') {
            $formatter = new HtmlFormatter();
        } elseif ($fmt ===  'html-inline') {
            $formatter = new InlineHtmlFormatter();
        } elseif ($fmt ===  'html-full') {
            $formatter = new FullPageHtmlFormatter();
        } elseif ($fmt === 'latex') {
            $formatter = new LatexFormatter();
        } elseif ($fmt === 'ansi') {
            $formatter = new AnsiFormatter();
        } elseif ($fmt ===  null || $fmt === 'none') {
            $formatter = new IdentityFormatter();
        }

        if ($formatter === null) {
            throw new Exception('Unknown formatter: ' . $this->settings->format);
            return null;
        }
        $this->setFormatterOptions($formatter);
        return $formatter;
    }
1042338
protected function getInternalFormatter()
    {
        $formatter = IntlDateFormatter::create(
            DBDate::ISO_LOCALE,
            IntlDateFormatter::MEDIUM,
            IntlDateFormatter::NONE
        );
        $formatter->setLenient(false);
        // CLDR ISO 8601 date.
        $formatter->setPattern(DBDate::ISO_DATE);
        return $formatter;
    }
321584
protected function formatter()
    {
        $key = $this->getLocalesKey(
            $locale = $this->getLocale(),
            $fallbackLocale = $this->getFallbackLocale()
        );

        if (! isset($this->formatters[$key])) {
            $this->formatters[$key] = new CurrencyFormatter(
                new NumberFormatRepository($fallbackLocale),
                $this->data(),
                ['locale' => $locale]
            );
        }

        return $this->formatters[$key];
    }
1244477
public function getDispatcher()
    {
        if (!$this->dispatcher) {
            $this->dispatcher = new \wf\app\web\Dispatcher($this);
        }

        return $this->dispatcher;
    }