Development

/plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/actions/actions.class.php

You must first sign up to be able to contribute.

root/plugins/sfPropel15Plugin/trunk/data/generator/sfPropelModule/admin15/template/actions/actions.class.php

Revision 28622, 2.1 kB (checked in by francois, 3 years ago)

[sfPropel15Plugin] added experimental query-based theme for the admin generator

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Id Rev Revision Author"
Line 
1 [?php
2
3 require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorConfiguration.class.php');
4 require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorHelper.class.php');
5
6 /**
7  * <?php echo $this->getModuleName() ?> actions.
8  *
9  * @package    ##PROJECT_NAME##
10  * @subpackage <?php echo $this->getModuleName()."\n" ?>
11  * @author     ##AUTHOR_NAME##
12  */
13 abstract class <?php echo $this->getGeneratedModuleName() ?>Actions extends <?php echo $this->getActionsBaseClass()."\n" ?>
14 {
15   public function preExecute()
16   {
17     $this->configuration = new <?php echo $this->getModuleName() ?>GeneratorConfiguration();
18
19     if (!$this->getUser()->hasCredential($this->configuration->getCredentials($this->getActionName())))
20     {
21       $this->forward(sfConfig::get('sf_secure_module'), sfConfig::get('sf_secure_action'));
22     }
23
24     $this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute', array('configuration' => $this->configuration)));
25
26     $this->helper = new <?php echo $this->getModuleName() ?>GeneratorHelper();
27   }
28
29 <?php include dirname(__FILE__).'/../../parts/indexAction.php' ?>
30
31 <?php if ($this->configuration->hasFilterForm()): ?>
32 <?php include dirname(__FILE__).'/../../parts/filterAction.php' ?>
33 <?php endif; ?>
34
35 <?php include dirname(__FILE__).'/../../parts/newAction.php' ?>
36
37 <?php include dirname(__FILE__).'/../../parts/createAction.php' ?>
38
39 <?php include dirname(__FILE__).'/../../parts/editAction.php' ?>
40
41 <?php include dirname(__FILE__).'/../../parts/updateAction.php' ?>
42
43 <?php include dirname(__FILE__).'/../../parts/deleteAction.php' ?>
44
45 <?php if ($this->configuration->getValue('list.batch_actions')): ?>
46 <?php include dirname(__FILE__).'/../../parts/batchAction.php' ?>
47 <?php endif; ?>
48
49 <?php include dirname(__FILE__).'/../../parts/processFormAction.php' ?>
50
51 <?php if ($this->configuration->hasFilterForm()): ?>
52 <?php include dirname(__FILE__).'/../../parts/filtersAction.php' ?>
53 <?php endif; ?>
54
55 <?php include dirname(__FILE__).'/../../parts/paginationAction.php' ?>
56
57 <?php include dirname(__FILE__).'/../../parts/sortingAction.php' ?>
58 }
59
Note: See TracBrowser for help on using the browser.