-
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.
trabajando en el admin de busqueda especializada
- Loading branch information
Showing
19 changed files
with
284 additions
and
264 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
apps/admin/modules/respuestaBusqueda/actions/actions.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,16 @@ | ||
<?php | ||
|
||
require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorConfiguration.class.php'; | ||
require_once dirname(__FILE__).'/../lib/respuestaBusquedaGeneratorHelper.class.php'; | ||
|
||
/** | ||
* respuestaBusqueda actions. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaActions extends autoRespuestaBusquedaActions | ||
{ | ||
} |
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: respuestab | ||
theme: dmAdmin | ||
non_verbose_templates: true | ||
with_show: false | ||
route_prefix: respuesta_busqueda | ||
with_doctrine_route: false | ||
config: | ||
actions: ~ | ||
fields: { } | ||
list: | ||
display: | ||
- '=id' | ||
- busqueda_id | ||
- mensaje | ||
- uri | ||
- created_at | ||
- updated_at | ||
sort: | ||
- created_at | ||
- desc | ||
table_method: getAdminListQuery | ||
table_count_method: ~ | ||
sortable: false | ||
filter: | ||
display: | ||
- id | ||
- mensaje | ||
- busqueda_id | ||
- uri | ||
- created_at | ||
- updated_at | ||
form: | ||
display: | ||
NONE: [busqueda_id] | ||
Mensaje: [mensaje] | ||
Others: [uri] | ||
class: respuestabAdminForm | ||
fields: { } | ||
edit: ~ | ||
new: ~ |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/respuestaBusqueda/lib/respuestaBusquedaGeneratorConfiguration.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 | ||
|
||
/** | ||
* respuestaBusqueda module configuration. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: configuration.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaGeneratorConfiguration extends BaseRespuestaBusquedaGeneratorConfiguration | ||
{ | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/admin/modules/respuestaBusqueda/lib/respuestaBusquedaGeneratorHelper.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 | ||
|
||
/** | ||
* respuestaBusqueda module helper. | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
* @version SVN: $Id: helper.php 12474 2008-10-31 10:41:27Z fabien $ | ||
*/ | ||
class respuestaBusquedaGeneratorHelper extends BaseRespuestaBusquedaGeneratorHelper | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/admin/modules/respuestaBusqueda/lib/respuestabAdminExport.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 | ||
|
||
/** | ||
* respuestaBusqueda admin export | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
*/ | ||
class respuestabAdminExport extends myDoctrineTableExport | ||
{ | ||
} |
17 changes: 17 additions & 0 deletions
17
apps/admin/modules/respuestaBusqueda/lib/respuestabAdminForm.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,17 @@ | ||
<?php | ||
|
||
/** | ||
* respuestaBusqueda admin form | ||
* | ||
* @package bibliocnic | ||
* @subpackage respuestaBusqueda | ||
* @author Your name here | ||
*/ | ||
class respuestabAdminForm extends BaserespuestabForm | ||
{ | ||
public function configure() | ||
{ | ||
parent::configure(); | ||
unset($this['created_at'], $this['updated_at']); | ||
} | ||
} |
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,18 @@ | ||
<?php // Vars: $busquedaPager | ||
|
||
echo $busquedaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($busquedaPager as $busqueda) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($busqueda); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $busquedaPager->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: $busqueda | ||
|
||
echo $busqueda; |
9 changes: 9 additions & 0 deletions
9
apps/front/modules/respuestaBusqueda/actions/actions.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,9 @@ | ||
<?php | ||
/** | ||
* Respuesta busqueda actions | ||
*/ | ||
class respuestaBusquedaActions extends myFrontModuleActions | ||
{ | ||
|
||
|
||
} |
25 changes: 25 additions & 0 deletions
25
apps/front/modules/respuestaBusqueda/actions/components.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,25 @@ | ||
<?php | ||
/** | ||
* Respuesta busqueda components | ||
* | ||
* No redirection nor database manipulation ( insert, update, delete ) here | ||
*/ | ||
class respuestaBusquedaComponents extends myFrontModuleComponents | ||
{ | ||
|
||
public function executeListByBusqueda() | ||
{ | ||
$query = $this->getListQuery(); | ||
|
||
$this->respuestaBusquedaPager = $this->getPager($query); | ||
} | ||
|
||
public function executeShow() | ||
{ | ||
$query = $this->getShowQuery(); | ||
|
||
$this->respuestaBusqueda = $this->getRecord($query); | ||
} | ||
|
||
|
||
} |
18 changes: 18 additions & 0 deletions
18
apps/front/modules/respuestaBusqueda/templates/_listByBusqueda.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: $respuestaBusquedaPager | ||
|
||
echo $respuestaBusquedaPager->renderNavigationTop(); | ||
|
||
echo _open('ul.elements'); | ||
|
||
foreach ($respuestaBusquedaPager as $respuestaBusqueda) | ||
{ | ||
echo _open('li.element'); | ||
|
||
echo _link($respuestaBusqueda); | ||
|
||
echo _close('li'); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $respuestaBusquedaPager->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: $respuestaBusqueda | ||
|
||
echo $respuestaBusqueda; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,8 @@ | |
*/ | ||
class Busqueda extends BaseBusqueda | ||
{ | ||
|
||
public function __toString() | ||
{ | ||
return self::getTitulo(); | ||
} | ||
} |
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