-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
241 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ generator: | |
display: | ||
- id | ||
- is_active | ||
- user_id | ||
- dm_user_id | ||
- titulo | ||
- mensaje | ||
- tematica | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
require_once dirname(__FILE__).'/../lib/preguntaGeneratorConfiguration.class.php'; | ||
require_once dirname(__FILE__).'/../lib/preguntaGeneratorHelper.class.php'; | ||
|
||
/** | ||
* pregunta actions. | ||
* | ||
* @package bibliocnic | ||
* @subpackage pregunta | ||
* @author Your name here | ||
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class preguntaActions extends autoPreguntaActions | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
generator: | ||
class: dmAdminDoctrineGenerator | ||
param: | ||
model_class: pregunta | ||
theme: dmAdmin | ||
non_verbose_templates: true | ||
with_show: false | ||
route_prefix: pregunta | ||
with_doctrine_route: false | ||
config: | ||
actions: ~ | ||
fields: { } | ||
list: | ||
display: | ||
- '=id' | ||
- dm_user_id | ||
- titulo | ||
- mensaje | ||
- created_at | ||
- updated_at | ||
sort: | ||
- created_at | ||
- desc | ||
table_method: getAdminListQuery | ||
table_count_method: ~ | ||
sortable: false | ||
filter: | ||
display: | ||
- id | ||
- dm_user_id | ||
- titulo | ||
- mensaje | ||
- created_at | ||
- updated_at | ||
form: | ||
display: | ||
NONE: [dm_user_id] | ||
Mensaje: [mensaje] | ||
Others: [titulo] | ||
class: preguntaAdminForm | ||
fields: { } | ||
edit: ~ | ||
new: ~ |
12 changes: 12 additions & 0 deletions
12
apps/admin/modules/pregunta/lib/preguntaAdminExport.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
/** | ||
* pregunta admin export | ||
* | ||
* @package bibliocnic | ||
* @subpackage pregunta | ||
* @author Your name here | ||
*/ | ||
class preguntaAdminExport extends myDoctrineTableExport | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
/** | ||
* pregunta admin form | ||
* | ||
* @package bibliocnic | ||
* @subpackage pregunta | ||
* @author Your name here | ||
*/ | ||
class preguntaAdminForm extends BasepreguntaForm | ||
{ | ||
public function configure() | ||
{ | ||
parent::configure(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/pregunta/lib/preguntaGeneratorConfiguration.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* pregunta module configuration. | ||
* | ||
* @package bibliocnic | ||
* @subpackage pregunta | ||
* @author Your name here | ||
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class preguntaGeneratorConfiguration extends BasePreguntaGeneratorConfiguration | ||
{ | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/pregunta/lib/preguntaGeneratorHelper.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* pregunta module helper. | ||
* | ||
* @package bibliocnic | ||
* @subpackage pregunta | ||
* @author Your name here | ||
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class preguntaGeneratorHelper extends BasePreguntaGeneratorHelper | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Pregunta actions | ||
*/ | ||
class preguntaActions extends myFrontModuleActions | ||
{ | ||
|
||
public function executeFormWidget(dmWebRequest $request) | ||
{ | ||
$form = new preguntaForm(); | ||
|
||
if ($request->hasParameter($form->getName()) && $form->bindAndValid($request)) | ||
{ | ||
$form->save(); | ||
$this->redirectBack(); | ||
} | ||
|
||
$this->forms['pregunta'] = $form; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Pregunta components | ||
* | ||
* No redirection nor database manipulation ( insert, update, delete ) here | ||
*/ | ||
class preguntaComponents extends myFrontModuleComponents | ||
{ | ||
|
||
public function executeForm() | ||
{ | ||
$this->form = $this->forms['pregunta']; | ||
} | ||
|
||
public function executeList() | ||
{ | ||
$query = $this->getListQuery(); | ||
|
||
$this->preguntaPager = $this->getPager($query); | ||
} | ||
|
||
public function executeShow() | ||
{ | ||
$query = $this->getShowQuery(); | ||
|
||
$this->pregunta = $this->getRecord($query); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php // Vars: $form | ||
|
||
echo $form; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php // Vars: $preguntaPager | ||
|
||
echo $preguntaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($preguntaPager as $pregunta) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($pregunta); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $preguntaPager->renderNavigationBottom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php // Vars: $pregunta | ||
|
||
echo $pregunta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
apps/front/modules/respuesta/templates/_listByPregunta.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php // Vars: $respuestaPager | ||
|
||
echo $respuestaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($respuestaPager as $respuesta) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($respuesta); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $respuestaPager->renderNavigationBottom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters