Author: tkoomzaaskz
Date: 2010-09-11 13:21:36 +0200 (Sat, 11 Sep 2010)
New Revision: 30883
Added:
plugins/tdCorePlugin/trunk/config/doctrine/
plugins/tdCorePlugin/trunk/config/doctrine/schema.yml
plugins/tdCorePlugin/trunk/config/routing.yml
plugins/tdCorePlugin/trunk/data/
plugins/tdCorePlugin/trunk/data/fixtures/
plugins/tdCorePlugin/trunk/data/fixtures/configs.yml
plugins/tdCorePlugin/trunk/data/fixtures/subpages.yml
plugins/tdCorePlugin/trunk/lib/filter/
plugins/tdCorePlugin/trunk/lib/filter/doctrine/
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdConfigFormFilter.class.php
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdSubpageFormFilter.class.php
plugins/tdCorePlugin/trunk/lib/form/
plugins/tdCorePlugin/trunk/lib/form/doctrine/
plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdConfigForm.class.php
plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdSubpageForm.class.php
plugins/tdCorePlugin/trunk/lib/model/
plugins/tdCorePlugin/trunk/lib/model/doctrine/
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfig.class.php
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfigTable.class.php
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpage.class.php
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpageTable.class.php
plugins/tdCorePlugin/trunk/modules/tdConfig/
plugins/tdCorePlugin/trunk/modules/tdConfig/actions/
plugins/tdCorePlugin/trunk/modules/tdConfig/actions/actions.class.php
plugins/tdCorePlugin/trunk/modules/tdConfig/config/
plugins/tdCorePlugin/trunk/modules/tdConfig/config/generator.yml
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorConfiguration.class.php
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorHelper.class.php
plugins/tdCorePlugin/trunk/modules/tdConfig/templates/
plugins/tdCorePlugin/trunk/modules/tdSubpage/
plugins/tdCorePlugin/trunk/modules/tdSubpage/actions/
plugins/tdCorePlugin/trunk/modules/tdSubpage/actions/actions.class.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/config/
plugins/tdCorePlugin/trunk/modules/tdSubpage/config/generator.yml
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorConfiguration.class.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorHelper.class.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_activate.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_deactivate.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_main_active.php
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_list_td_actions.php
Modified:
plugins/tdCorePlugin/trunk/LICENSE
plugins/tdCorePlugin/trunk/package.xml
Log:
[td][core] preparing for new release
Modified: plugins/tdCorePlugin/trunk/LICENSE
===================================================================
--- plugins/tdCorePlugin/trunk/LICENSE 2010-09-10 21:43:01 UTC (rev 30882)
+++ plugins/tdCorePlugin/trunk/LICENSE 2010-09-11 11:21:36 UTC (rev 30883)
@@ -1,4 +1,4 @@
-Copyright (c) 2009 Tomasz Ducin
+Copyright (c) 2009-2010 Tomasz Ducin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
Added: plugins/tdCorePlugin/trunk/config/doctrine/schema.yml
===================================================================
--- plugins/tdCorePlugin/trunk/config/doctrine/schema.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/config/doctrine/schema.yml 2010-09-11
11:21:36 UTC (rev 30883)
@@ -0,0 +1,35 @@
+options:
+ collate: utf8_general_ci
+ charset: utf8
+
+tdSubpage:
+ actAs:
+ Timestampable: ~
+ columns:
+ name:
+ type: string(255)
+ notnull: true
+ content:
+ type: string
+ notnull: true
+ active:
+ type: boolean
+ notnull: true
+ default: true
+
+tdConfig:
+ actAs:
+ Timestampable: ~
+ columns:
+ name:
+ type: string(64)
+ notnull: true
+ value:
+ type: string
+ notnull: true
+ description:
+ type: string
+ indexes:
+ name_unique:
+ fields: [ name ]
+ type: unique
Added: plugins/tdCorePlugin/trunk/config/routing.yml
===================================================================
--- plugins/tdCorePlugin/trunk/config/routing.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/config/routing.yml 2010-09-11 11:21:36 UTC
(rev 30883)
@@ -0,0 +1,29 @@
+tdSubpage:
+ class: sfDoctrineRouteCollection
+ options:
+ model: tdSubpage
+ module: tdSubpage
+ prefix_path: /tdSubpage
+ column: id
+ with_wildcard_routes: true
+
+td_ajax_subpage_activate:
+ url: /td_ajax_subpage_activate/:id
+ param: { module: tdSubpage, action: activate }
+ requirements:
+ id: \d+
+
+td_ajax_subpage_deactivate:
+ url: /td_ajax_subpage_deactivate/:id
+ param: { module: tdSubpage, action: deactivate }
+ requirements:
+ id: \d+
+
+tdConfig:
+ class: sfDoctrineRouteCollection
+ options:
+ model: tdConfig
+ module: tdConfig
+ prefix_path: /tdConfig
+ column: id
+ with_wildcard_routes: true
Added: plugins/tdCorePlugin/trunk/data/fixtures/configs.yml
===================================================================
--- plugins/tdCorePlugin/trunk/data/fixtures/configs.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/data/fixtures/configs.yml 2010-09-11
11:21:36 UTC (rev 30883)
@@ -0,0 +1 @@
+# define config options here
\ No newline at end of file
Added: plugins/tdCorePlugin/trunk/data/fixtures/subpages.yml
===================================================================
--- plugins/tdCorePlugin/trunk/data/fixtures/subpages.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/data/fixtures/subpages.yml 2010-09-11
11:21:36 UTC (rev 30883)
@@ -0,0 +1,10 @@
+<?php $generator = new tdRandomDataGenerator(); ?>
+tdSubpage:
+<?php for($i = 0; $i < 10; $i++): ?>
+ subpage_<?php echo $i ?>:
+ name: <?php echo $generator->getRandomName()."\n" ?>
+ content: <?php echo
$generator->getRandomText(mt_rand(500,800)*mt_rand(1,5))."\n" ?>
+ active: <?php echo (mt_rand(0,2) ? 'true' : 'false' )."\n" ?>
+ created_at: <?php echo $generator->getRandomCreatedAt(2010 +
mt_rand(0,1))."\n" ?>
+ updated_at: <?php echo $generator->getRandomCreatedAt(2010 +
mt_rand(0,1))."\n" ?>
+<?php endfor; ?>
\ No newline at end of file
Added:
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdConfigFormFilter.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdConfigFormFilter.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdConfigFormFilter.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * PlugintdConfig form.
+ *
+ * @package ##PROJECT_NAME##
+ * @subpackage filter
+ * @author ##AUTHOR_NAME##
+ * @version SVN: $Id: sfDoctrineFormFilterPluginTemplate.php 23810
2009-11-12 11:07:44Z Kris.Wallsmith $
+ */
+abstract class PlugintdConfigFormFilter extends BasetdConfigFormFilter
+{
+}
Added:
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdSubpageFormFilter.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdSubpageFormFilter.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/lib/filter/doctrine/PlugintdSubpageFormFilter.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * PlugintdSubpage form.
+ *
+ * @package ##PROJECT_NAME##
+ * @subpackage filter
+ * @author ##AUTHOR_NAME##
+ * @version SVN: $Id: sfDoctrineFormFilterPluginTemplate.php 23810
2009-11-12 11:07:44Z Kris.Wallsmith $
+ */
+abstract class PlugintdSubpageFormFilter extends BasetdSubpageFormFilter
+{
+}
Added: plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdConfigForm.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdConfigForm.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdConfigForm.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * PlugintdConfig form.
+ *
+ * @package ##PROJECT_NAME##
+ * @subpackage form
+ * @author ##AUTHOR_NAME##
+ * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12
11:07:44Z Kris.Wallsmith $
+ */
+abstract class PlugintdConfigForm extends BasetdConfigForm
+{
+}
Added:
plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdSubpageForm.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdSubpageForm.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/lib/form/doctrine/PlugintdSubpageForm.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * PlugintdSubpage form.
+ *
+ * @package ##PROJECT_NAME##
+ * @subpackage form
+ * @author ##AUTHOR_NAME##
+ * @version SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12
11:07:44Z Kris.Wallsmith $
+ */
+abstract class PlugintdSubpageForm extends BasetdSubpageForm
+{
+}
Added: plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfig.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfig.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfig.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * PlugintdConfig
+ *
+ * This class has been auto-generated by the Doctrine ORM Framework
+ *
+ * @package ##PACKAGE##
+ * @subpackage ##SUBPACKAGE##
+ * @author ##NAME## <##EMAIL##>
+ * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
+ */
+abstract class PlugintdConfig extends BasetdConfig
+{
+
+}
\ No newline at end of file
Added:
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfigTable.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfigTable.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdConfigTable.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * PlugintdConfigTable
+ *
+ * This class has been auto-generated by the Doctrine ORM Framework
+ */
+class PlugintdConfigTable extends Doctrine_Table
+{
+ /**
+ * Returns an instance of this class.
+ *
+ * @return object PlugintdConfigTable
+ */
+ public static function getInstance()
+ {
+ return Doctrine_Core::getTable('PlugintdConfig');
+ }
+}
\ No newline at end of file
Added: plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpage.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpage.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpage.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * PlugintdSubpage
+ *
+ * This class has been auto-generated by the Doctrine ORM Framework
+ *
+ * @package ##PACKAGE##
+ * @subpackage ##SUBPACKAGE##
+ * @author ##NAME## <##EMAIL##>
+ * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
+ */
+abstract class PlugintdSubpage extends BasetdSubpage
+{
+ /**
+ * Returns id value.
+ *
+ * @return Integer - id value.
+ */
+ public function getIdValue()
+ {
+ return $this->getId();
+ }
+
+ /**
+ * Returns shortened content of the static page.
+ *
+ * @return String - shortened content.
+ */
+ public function getContentShort()
+ {
+ return strip_tags(tdTools::getMbShortenedString($this->getContent(), 400));
+ }
+}
\ No newline at end of file
Added:
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpageTable.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpageTable.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/lib/model/doctrine/PlugintdSubpageTable.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * PlugintdSubpageTable
+ *
+ * This class has been auto-generated by the Doctrine ORM Framework
+ */
+class PlugintdSubpageTable extends Doctrine_Table
+{
+ /**
+ * Returns an instance of this class.
+ *
+ * @return object PlugintdSubpageTable
+ */
+ public static function getInstance()
+ {
+ return Doctrine_Core::getTable('PlugintdSubpage');
+ }
+}
\ No newline at end of file
Added: plugins/tdCorePlugin/trunk/modules/tdConfig/actions/actions.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdConfig/actions/actions.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdConfig/actions/actions.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,16 @@
+<?php
+
+require_once
dirname(__FILE__).'/../lib/tdConfigGeneratorConfiguration.class.php';
+require_once dirname(__FILE__).'/../lib/tdConfigGeneratorHelper.class.php';
+
+/**
+ * tdConfig actions.
+ *
+ * @package plugin
+ * @subpackage tdCorePLugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
Kris.Wallsmith $
+ */
+class tdConfigActions extends autoTdConfigActions
+{
+}
Added: plugins/tdCorePlugin/trunk/modules/tdConfig/config/generator.yml
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdConfig/config/generator.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdConfig/config/generator.yml
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,46 @@
+generator:
+ class: sfDoctrineGenerator
+ param:
+ model_class: tdConfig
+ theme: admin
+ non_verbose_templates: true
+ with_show: false
+ singular: ~
+ plural: ~
+ route_prefix: tdConfig
+ with_doctrine_route: true
+ actions_base_class: sfActions
+# css: td_admin
+
+ config:
+ actions: ~
+ fields:
+ name:
+ label: Nazwa
+ value:
+ label: Wartość
+ description:
+ label: Opis
+ created_at:
+ label: Utworzono
+ updated_at:
+ label: Zmodyfikowano
+ list:
+ title: Lista ustawień
+ display: [ name, value, description, updated_at ]
+ max_per_page: 20
+ actions: []
+ form:
+ display: [ name, value, description ]
+ fields:
+ name:
+ attributes: { size: 80, readonly: true }
+ value:
+ attributes: { size: 80 }
+ description:
+ attributes: { cols: 78, readonly: true }
+ filter:
+ class: false
+ edit:
+ title: Edytuj ustawienie
+
Added:
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorConfiguration.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorConfiguration.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorConfiguration.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * tdConfig module configuration.
+ *
+ * @package plugin
+ * @subpackage tdCorePlugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z
Kris.Wallsmith $
+ */
+class tdConfigGeneratorConfiguration extends BaseTdConfigGeneratorConfiguration
+{
+}
Added:
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorHelper.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorHelper.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/modules/tdConfig/lib/tdConfigGeneratorHelper.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * tdConfig module helper.
+ *
+ * @package plugin
+ * @subpackage tdCorePlugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
+ */
+class tdConfigGeneratorHelper extends BaseTdConfigGeneratorHelper
+{
+}
Added: plugins/tdCorePlugin/trunk/modules/tdSubpage/actions/actions.class.php
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdSubpage/actions/actions.class.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdSubpage/actions/actions.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,43 @@
+<?php
+
+require_once
dirname(__FILE__).'/../lib/tdSubpageGeneratorConfiguration.class.php';
+require_once dirname(__FILE__).'/../lib/tdSubpageGeneratorHelper.class.php';
+
+/**
+ * tdSubpage actions.
+ *
+ * @package plugin
+ * @subpackage tdCorePlugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
Kris.Wallsmith $
+ */
+class tdSubpageActions extends autoTdSubpageActions
+{
+ /**
+ * Activates a subpage from admin generator list using AJAX.
+ *
+ * @param sfWebRequest $request
+ * @return Partial - generated partial enabling subpage deactivating
(switch).
+ */
+ public function executeActivate(sfWebRequest $request)
+ {
+ $subpage =
SubpageTable::getSubpageByIdQuery($request->getParameter('id'))->fetchOne();
+ $subpage->activate();
+
+ return $this->renderPartial('subpage/ajax_deactivate', array('subpage' =>
$subpage));
+ }
+
+ /**
+ * Deactivates a subpage from admin generator list using AJAX.
+ *
+ * @param sfWebRequest $request
+ * @return Partial - generated partial enabling subpage activating (switch).
+ */
+ public function executeDeactivate(sfWebRequest $request)
+ {
+ $subpage =
SubpageTable::getSubpageByIdQuery($request->getParameter('id'))->fetchOne();
+ $subpage->deactivate();
+
+ return $this->renderPartial('subpage/ajax_activate', array('subpage' =>
$subpage));
+ }
+}
Added: plugins/tdCorePlugin/trunk/modules/tdSubpage/config/generator.yml
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdSubpage/config/generator.yml
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdSubpage/config/generator.yml
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,58 @@
+generator:
+ class: sfDoctrineGenerator
+ param:
+ model_class: tdSubpage
+ theme: admin
+ non_verbose_templates: true
+ with_show: false
+ singular: ~
+ plural: ~
+ route_prefix: tdSubpage
+ with_doctrine_route: true
+ actions_base_class: sfActions
+# css: td_admin
+
+ config:
+ actions: ~
+ fields:
+ name:
+ label: Nazwa
+ content:
+ label: Zawartość
+ active:
+ label: Aktywna
+ created_at:
+ label: Utworzono
+ updated_at:
+ label: Zmodyfikowano
+ list:
+ title: Lista stron
+ display: [ name, content, active, updated_at ]
+ max_per_page: 20
+ layout: stacked
+ params: |
+ <h3>%%name%%</h3> <span
id="subpage_visible_column_%%id_value%%">%%active%%</span>
+ %%content_short%%
+# actions: []
+ batch_actions:
+ _delete: ~
+ activate: ~
+ deactivate: ~
+ object_actions:
+ _edit: ~
+ _delete: ~
+ activate: ~
+ deactivate: ~
+ form:
+ display: [ name, content, active ]
+ fields:
+ name:
+ attributes: { size: 80 }
+ title:
+ attributes: { size: 80 }
+ content:
+ attributes: { cols: 80, rows: 16 }
+ filter:
+ class: false
+ edit:
+ title: Edytuj stronę
Added:
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorConfiguration.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorConfiguration.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorConfiguration.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * tdSubpage module configuration.
+ *
+ * @package plugin
+ * @subpackage tdCorePlugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z
Kris.Wallsmith $
+ */
+class tdSubpageGeneratorConfiguration extends
BaseTdSubpageGeneratorConfiguration
+{
+}
Added:
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorHelper.class.php
===================================================================
---
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorHelper.class.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/modules/tdSubpage/lib/tdSubpageGeneratorHelper.class.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * tdSubpage module helper.
+ *
+ * @package plugin
+ * @subpackage tdCorePlugin
+ * @author Tomasz Ducin <[email protected]>
+ * @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
+ */
+class tdSubpageGeneratorHelper extends BaseTdSubpageGeneratorHelper
+{
+}
Added: plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_activate.php
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_activate.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_activate.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<li class="sf_admin_action_activate" id="ajax_activate_<?php echo
$td_subpage->getId() ?>">
+<?php use_helper('jQuery'); ?>
+ <?php echo jq_link_to_remote(__('Activate', array(), 'sf_admin'), array(
+ 'update' => 'subpage_visible_action_'.$td_subpage->getId(),
+ 'url' => '@td_ajax_subpage_activate?id='.$td_subpage->getId(),
+ 'script' => true,
+ 'complete' => jq_remote_function( array(
+ 'update' => 'subpage_visible_column_'.$td_subpage->getId(),
+ 'url' => 'graphics/tick',
+ 'script' => true
+ )),
+ )) ?>
+</li>
Added:
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_deactivate.php
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_deactivate.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_deactivate.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,13 @@
+<li class="sf_admin_action_deactivate" id="ajax_deactivate_<?php echo
$td_subpage->getId() ?>">
+<?php use_helper('jQuery'); ?>
+ <?php echo jq_link_to_remote(__('Deactivate', array(), 'sf_admin'), array(
+ 'update' => 'subpage_visible_action_'.$td_subpage->getId(),
+ 'url' => '@td_ajax_subpage_deactivate?id='.$td_subpage->getId(),
+ 'script' => true,
+ 'complete' => jq_remote_function( array(
+ 'update' => 'subpage_visible_column_'.$td_subpage->getId(),
+ 'url' => 'graphics/empty',
+ 'script' => true
+ )),
+ )) ?>
+</li>
Added:
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_main_active.php
===================================================================
---
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_main_active.php
(rev 0)
+++
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_ajax_main_active.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,7 @@
+<span id="subpage_visible_action_<?php echo $td_subpage->getId() ?>">
+ <?php if ($td_subpage->getActive()): ?>
+ <?php include_partial('tdSubpage/ajax_deactivate', array('td_subpage' =>
$td_subpage)) ?>
+ <?php else: ?>
+ <?php include_partial('tdSubpage/ajax_activate', array('td_subpage' =>
$td_subpage)) ?>
+ <?php endif; ?>
+</span>
Added:
plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_list_td_actions.php
===================================================================
--- plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_list_td_actions.php
(rev 0)
+++ plugins/tdCorePlugin/trunk/modules/tdSubpage/templates/_list_td_actions.php
2010-09-11 11:21:36 UTC (rev 30883)
@@ -0,0 +1,7 @@
+<td>
+ <ul class="sf_admin_td_actions">
+ <?php echo $helper->linkToEdit($td_subpage, array( 'params' => array(
), 'class_suffix' => 'edit', 'label' => 'Edit',)) ?>
+ <?php echo $helper->linkToDelete($td_subpage, array( 'params' => array(
), 'confirm' => 'Are you sure?', 'class_suffix' => 'delete', 'label' =>
'Delete',)) ?>
+ <?php include_partial('tdSubpage/ajax_main_active', array('td_subpage' =>
$td_subpage)) ?>
+ </ul>
+</td>
Modified: plugins/tdCorePlugin/trunk/package.xml
===================================================================
--- plugins/tdCorePlugin/trunk/package.xml 2010-09-10 21:43:01 UTC (rev
30882)
+++ plugins/tdCorePlugin/trunk/package.xml 2010-09-11 11:21:36 UTC (rev
30883)
@@ -10,7 +10,7 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
- <date>2010-09-07</date>
+ <date>2010-09-09</date>
<time>11:00:00</time>
<version>
<release>0.2.1</release>
@@ -28,15 +28,43 @@
<dir name="config">
<file name="tdCorePluginConfiguration.class.php" role="data" />
+ <file name="routing.yml" role="data" />
+ <dir name="doctrine">
+ <file name="schema.yml" role="data" />
+ </dir>
</dir>
<dir name="lib">
- <file name="tdRandomDataGenerator.class.php" role="data" />
- <file name="tdTools.class.php" role="data" />
+ <file name="fixtures.yml" role="data" />
+ </dir>
+
+ <dir name="lib">
<dir name="breadcrumb">
<file name="tdBreadcrumb.class.php" role="data" />
<file name="tdBreadcrumbItem.class.php" role="data" />
</dir>
+ <dir name="filter">
+ <dir name="doctrine">
+ <file name="PlugintdConfigFormFilter.class.php" role="data" />
+ <file name="PlugintdSubpageFormFilter.class.php" role="data" />
+ </dir>
+ </dir>
+ <dir name="form">
+ <dir name="doctrine">
+ <file name="PlugintdConfigForm.class.php" role="data" />
+ <file name="PlugintdSubpageForm.class.php" role="data" />
+ </dir>
+ </dir>
+ <dir name="model">
+ <dir name="doctrine">
+ <file name="PlugintdConfig.class.php" role="data" />
+ <file name="PlugintdConfigTable.class.php" role="data" />
+ <file name="PlugintdSubpage.class.php" role="data" />
+ <file name="PlugintdSubpageTable.class.php" role="data" />
+ </dir>
+ </dir>
+ <file name="tdRandomDataGenerator.class.php" role="data" />
+ <file name="tdTools.class.php" role="data" />
</dir>
<dir name="modules">
@@ -60,6 +88,37 @@
<file name="_display.php" role="data" />
</dir>
</dir>
+ <dir name="tdConfig">
+ <dir name="actions">
+ <file name="actions.class.php" role="data" />
+ </dir>
+ <dir name="config">
+ <file name="generator.yml" role="data" />
+ </dir>
+ <dir name="lib">
+ <file name="tdConfigGeneratorConfiguration.class" role="data" />
+ <file name="tdConfigGeneratorHelper.class" role="data" />
+ </dir>
+ <dir name="templates" />
+ </dir>
+ <dir name="tdSubpage">
+ <dir name="actions">
+ <file name="actions.class.php" role="data" />
+ </dir>
+ <dir name="config">
+ <file name="generator.yml" role="data" />
+ </dir>
+ <dir name="lib">
+ <file name="tdSubpageGeneratorConfiguration.class" role="data" />
+ <file name="tdSubpageGeneratorHelper.class" role="data" />
+ </dir>
+ <dir name="templates">
+ <file name="_ajax_activate.php" role="data" />
+ <file name="_ajax_deactivate.php" role="data" />
+ <file name="_ajax_main_active.php" role="data" />
+ <file name="_list_td_actions.php" role="data" />
+ </dir>
+ </dir>
</dir>
<dir name="web">
@@ -178,10 +237,10 @@
<api>beta</api>
</stability>
<license uri="http://www.symfony-project.org/license">MIT
license</license>
- <date>2010-09-06</date>
+ <date>2010-09-09</date>
<license>MIT</license>
<notes>
- * added static pages model and module
+ * added model and modules for subpages and configuration
* improved readme for breadcrumbs
</notes>
</release>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.