Overview

Namespaces

  • Jity
    • HomepageBundle
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
        • Compiler
        • Service
          • Controller
      • Doctrine
        • Extension
          • DBAL
            • Types
      • Entity
      • EventListener
      • Form
        • Extension
      • Tests
        • Controller
      • Twig
        • Extension
  • PHP

Classes

  • AdminController
  • ArticleController
  • AuthorController
  • BlogController
  • CategoryController
  • DebugController
  • DefaultController
  • EditorController
  • PageController
  • SectionController
  • SecurityController
  • SidebarController
  • TagController
  • UserController
  • Overview
  • Namespace
  • Class
  • Tree

Class EditorController

EditorController

The Editor Controller allows you to process texts. You can parse Markdown and convert it to HTML, or parse a text for tags (jity/tag-generator).

You can (sub)request overall over the place a common modal, a modaled-editor (ACE), or a Icon Picker.

Symfony\Bundle\FrameworkBundle\Controller\Controller
Extended by Jity\HomepageBundle\Controller\EditorController
Namespace: Jity\HomepageBundle\Controller
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Controller
Located at Jity/HomepageBundle/Controller/EditorController.php
Methods summary
public Symfony\Component\HttpFoundation\Response
# formatAction( Symfony\Component\HttpFoundation\Request $request, string $text )

formatAction

formatAction

Parse Markdown and convert it to HTML.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Parse text from a request
$text
string
$text Or parse a text by bypassing it

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# tagsAction( Symfony\Component\HttpFoundation\Request $request, string $text )

tagsAction

tagsAction

Parse a text for tags with the use of jity/tag-generator.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Parse text from a request
$text
string
$text Or parse a text by bypassing it

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# modalAction( string $name, array $buttons = array(), string $label = null, string $body = null, boolean $enableJS = false, string $class = null )

modalAction

modalAction

Print a toggleable, run-time-configureable (enableJS) modal.

Parameters

$name
string
$name Name of the modal
$buttons
array
$buttons Buttons (data-struct) of the modal
$label
string
$label Label of the modal
$body
string
$body Body of the modal
$enableJS
boolean
$enableJS Enable the Javascript Class implementation
$class
string
$class CSS Class of the modal

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# iconsAction( string $syncElement )

iconsAction

iconsAction

Print an Icon Picker.

Parameters

$syncElement
string
$syncElement DOM Element where we put the result (icon name)

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# buildAction( string $syncElement = '', string $title = 'Texteditor', string $mode = 'markdown' )

buildAction

buildAction

Print an configured ACE Editor modal.

Parameters

$syncElement
string
$syncElement DOM Element where we put the result (written text)
$title
string
$title Title of the editor modal
$mode
string
$mode Mode of the editor modal (ACE Modes: eg. Markdown)

Returns

Symfony\Component\HttpFoundation\Response
API documentation generated by ApiGen 2.8.0