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 BlogController

BlogController

The Blog Controller allows you to CRUD comments of an article.

Symfony\Bundle\FrameworkBundle\Controller\Controller
Extended by Jity\HomepageBundle\Controller\BlogController
Namespace: Jity\HomepageBundle\Controller
Author: Hermann Mayer <hermann.mayer92@gmail.com>
Uses: Controller
Located at Jity/HomepageBundle/Controller/BlogController.php
Methods summary
public Symfony\Component\HttpFoundation\Response
# showAction( string $slug, string $_format, string $parameters )

showAction

showAction

Show an article.

Parameters

$slug
string
$slug Slug of the article to show
$_format
string
$_format Response Format
$parameters
string
$parameters Optional Service Parameter String

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# createCommentFormAction( mixed $comment = null, mixed $form = null, mixed $action = null, boolean $anonymous = true, boolean $renderFormTag = true, boolean $visible = true )

createCommentFormAction

createCommentFormAction

Create a form for creating a comment.

Parameters

$comment
mixed
$comment Prebuild Comment which fill the form
$form
mixed
$form Prebuild Form which will be used
$action
mixed
$action Action URI for the form
$anonymous
boolean
$anonymous Render the anonymous fields of the form
$renderFormTag
boolean
$renderFormTag Render the HTML form tags
$visible
boolean
$visible Should the form be visible by default

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# createCommentAction( Symfony\Component\HttpFoundation\Request $request, mixed $id, mixed $anonymous )

createCommentAction

createCommentAction

Creates a new Comment entity.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Request Object
$id
mixed
$id Id of the article to connect the comment to
$anonymous
mixed
$anonymous Should be validated as anonymously commited

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# deleteCommentAction( Symfony\Component\HttpFoundation\Request $request, mixed $id )

deleteCommentAction

deleteCommentAction

Deletes a Comment entity from a Article entity.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Request Object
$id
mixed
$id Id of the comment to remove from the article

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# deleteCommentFormAction( integer $id, boolean $renderForm = false, string $action = null )

deleteCommentFormAction

deleteCommentFormAction

Create a form for comment deletion.

Parameters

$id
integer
$id Id to embed as a hidden field in the form
$renderForm
boolean
$renderForm Render the form to a view, or leave it raw
$action
string
$action Action URI for the form

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# updateCommentAction( Symfony\Component\HttpFoundation\Request $request, mixed $id )

updateCommentAction

updateCommentAction

Edits an existing Comment entity.

Parameters

$request
Symfony\Component\HttpFoundation\Request
$request Request Object
$id
mixed
$id Id of the comment to update

Returns

Symfony\Component\HttpFoundation\Response
public Symfony\Component\HttpFoundation\Response
# sectionArchivAction( )

sectionArchivAction

sectionArchivAction

Build an archiv-map of all articles for printing this as a Sidebar Section.

Returns

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