summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php66
1 files changed, 33 insertions, 33 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
index 81fdfea7..532b17b0 100644
--- a/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
+++ b/tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php
@@ -1,34 +1,34 @@
-<?php
-Prado::using('System.Web.UI.ActiveControls.*');
-class DActiveDropDownList2 extends TActiveDropDownList
-{
- public function setOpcoes($val)
- {
- $this->setViewState('Opcoes', $val);
- }
-
- public function loadOptions()
- {
- $opcao = $this->getViewState('Opcoes');
-
- switch ($opcao) {
- case "turnos":
- $this->DataTextField="descricao";
- $this->DataValueField="id_turno";
- $opts = array(
- array('id_turno' => 'M', 'descricao' => 'Manhã'),
- array('id_turno' => 'T', 'descricao' => 'Tarde'),
- array('id_turno' => 'N', 'descricao' => 'Noite')
- );
- break;
-
- default:
- throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
- break;
- }
- $this->setDataSource($opts);
- $this->dataBind();
- }
-}
-
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class DActiveDropDownList2 extends TActiveDropDownList
+{
+ public function setOpcoes($val)
+ {
+ $this->setViewState('Opcoes', $val);
+ }
+
+ public function loadOptions()
+ {
+ $opcao = $this->getViewState('Opcoes');
+
+ switch ($opcao) {
+ case "turnos":
+ $this->DataTextField="descricao";
+ $this->DataValueField="id_turno";
+ $opts = array(
+ array('id_turno' => 'M', 'descricao' => 'Manhã'),
+ array('id_turno' => 'T', 'descricao' => 'Tarde'),
+ array('id_turno' => 'N', 'descricao' => 'Noite')
+ );
+ break;
+
+ default:
+ throw new TConfigurationException('Falta argumento OPCOES no DActiveDropDownList');
+ break;
+ }
+ $this->setDataSource($opts);
+ $this->dataBind();
+ }
+}
+
?> \ No newline at end of file