Skip to content

Commit

Permalink
most update
Browse files Browse the repository at this point in the history
  • Loading branch information
Portugao committed Nov 4, 2017
1 parent 8ff428b commit 592b6f0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions MU/TransportModule/Controller/TableController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
* @author Michael Ueberschaer <[email protected]>.
* @link https://homepages-mit-zikula.de
* @link http://zikula.org
* @version Generated by ModuleStudio 1.0.1 (https://modulestudio.de).
* @version Generated by ModuleStudio (https://modulestudio.de).
*/

namespace MU\TransportModule\Controller;

use MU\TransportModule\Controller\Base\AbstractTableController;

use RuntimeException;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
Expand All @@ -27,13 +29,14 @@
* Table controller class providing navigation and interaction functionality.
*/
class TableController extends AbstractTableController
{
{
/**
* @inheritDoc
*
* @Route("/admin/tables",
* methods = {"GET"}
* )
* @Cache(expires="+7 days", public=true)
* @Theme("admin")
*
* @param Request $request Current request instance
Expand All @@ -53,6 +56,7 @@ public function adminIndexAction(Request $request)
* @Route("/tables",
* methods = {"GET"}
* )
* @Cache(expires="+7 days", public=true)
*
* @param Request $request Current request instance
*
Expand All @@ -72,6 +76,7 @@ public function indexAction(Request $request)
* defaults = {"sort" = "", "sortdir" = "asc", "pos" = 1, "num" = 10, "_format" = "html"},
* methods = {"GET"}
* )
* @Cache(expires="+2 hours", public=false)
* @Theme("admin")
*
* @param Request $request Current request instance
Expand All @@ -97,6 +102,7 @@ public function adminViewAction(Request $request, $sort, $sortdir, $pos, $num)
* defaults = {"sort" = "", "sortdir" = "asc", "pos" = 1, "num" = 10, "_format" = "html"},
* methods = {"GET"}
* )
* @Cache(expires="+2 hours", public=false)
*
* @param Request $request Current request instance
* @param string $sort Sorting field
Expand All @@ -120,6 +126,7 @@ public function viewAction(Request $request, $sort, $sortdir, $pos, $num)
* defaults = {"id" = "0", "_format" = "html"},
* methods = {"GET", "POST"}
* )
* @Cache(expires="+30 minutes", public=false)
* @Theme("admin")
*
* @param Request $request Current request instance
Expand All @@ -143,6 +150,7 @@ public function adminEditAction(Request $request)
* defaults = {"id" = "0", "_format" = "html"},
* methods = {"GET", "POST"}
* )
* @Cache(expires="+30 minutes", public=false)
*
* @param Request $request Current request instance
*
Expand All @@ -164,6 +172,8 @@ public function editAction(Request $request)
* defaults = {"_format" = "html"},
* methods = {"GET", "POST"}
* )
* @ParamConverter("table", class="MUTransportModule:TableEntity", options = {"repository_method" = "selectById", "mapping": {"id": "id"}, "map_method_signature" = true})
* @Cache(lastModified="table.getUpdatedDate()", ETag="'Table' ~ table.getid() ~ table.getUpdatedDate().format('U')")
* @Theme("admin")
*
* @param Request $request Current request instance
Expand All @@ -188,6 +198,8 @@ public function adminDeleteAction(Request $request, TableEntity $table)
* defaults = {"_format" = "html"},
* methods = {"GET", "POST"}
* )
* @ParamConverter("table", class="MUTransportModule:TableEntity", options = {"repository_method" = "selectById", "mapping": {"id": "id"}, "map_method_signature" = true})
* @Cache(lastModified="table.getUpdatedDate()", ETag="'Table' ~ table.getid() ~ table.getUpdatedDate().format('U')")
*
* @param Request $request Current request instance
* @param TableEntity $table Treated table instance
Expand Down Expand Up @@ -238,7 +250,6 @@ public function getTablesAction(Request $request)
{
return parent::getTablesAction($request);
}

/**
* @inheritDoc
*
Expand All @@ -247,6 +258,8 @@ public function getTablesAction(Request $request)
* defaults = {"_format" = "html"},
* methods = {"GET"}
* )
* @ParamConverter("table", class="MUTransportModule:TableEntity", options = {"repository_method" = "selectById", "mapping": {"id": "id"}, "map_method_signature" = true})
* @Cache(lastModified="table.getUpdatedDate()", ETag="'Table' ~ table.getid() ~ table.getUpdatedDate().format('U')")
* @Theme("admin")
*
* @param Request $request Current request instance
Expand All @@ -270,6 +283,8 @@ public function adminDisplayAction(Request $request, TableEntity $table)
* defaults = {"_format" = "html"},
* methods = {"GET"}
* )
* @ParamConverter("table", class="MUTransportModule:TableEntity", options = {"repository_method" = "selectById", "mapping": {"id": "id"}, "map_method_signature" = true})
* @Cache(lastModified="table.getUpdatedDate()", ETag="'Table' ~ table.getid() ~ table.getUpdatedDate().format('U')")
*
* @param Request $request Current request instance
* @param TableEntity $table Treated table instance
Expand Down

0 comments on commit 592b6f0

Please sign in to comment.