diff options
author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 |
commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
tree | e08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php | |
parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php b/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php index d31c10f6..e2ffbf07 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php +++ b/tests/FunctionalTests/active-controls/protected/pages/GerTurno2.php @@ -1,53 +1,53 @@ -<?php
-
-class GerTurno2 extends TPage {
-
- private $_turnos = null;
-
-
- public function onLoad($param) {
- parent::onLoad($param);
-
- $this->loadTurnoOptions();
-
- if (!$this->IsPostBack) {
- $this->ativaModoEdicao();
- }
- }
-
-
- protected function loadTurnoOptions()
- {
- $this->DDropTurno->DataTextField="descricao";
- $this->DDropTurno->DataValueField="id";
- $this->_turnos = array(
- array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'),
- array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2')
- );
- $this->DDropTurno->setDataSource($this->_turnos);
- $this->DDropTurno->dataBind();
- }
-
-
- protected function ativaModoEdicao() {
- $this->loadDadosTurno($this->DDropTurno->getSelectedValue());
- }
-
-
- protected function loadDadosTurno($id) {
- foreach ($this->_turnos as $key => $tur) {
- if ($tur['id'] == $id) {
- $this->Codigo->setText($tur['codigo']);
- $this->Descricao->setText($tur['descricao']);
- }
- }
- }
-
-
- public function trocaTurno($sender,$param) {
- $this->loadDadosTurno($sender->getSelectedValue());
- }
-
-}
-
+<?php + +class GerTurno2 extends TPage { + + private $_turnos = null; + + + public function onLoad($param) { + parent::onLoad($param); + + $this->loadTurnoOptions(); + + if (!$this->IsPostBack) { + $this->ativaModoEdicao(); + } + } + + + protected function loadTurnoOptions() + { + $this->DDropTurno->DataTextField="descricao"; + $this->DDropTurno->DataValueField="id"; + $this->_turnos = array( + array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'), + array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2') + ); + $this->DDropTurno->setDataSource($this->_turnos); + $this->DDropTurno->dataBind(); + } + + + protected function ativaModoEdicao() { + $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); + } + + + protected function loadDadosTurno($id) { + foreach ($this->_turnos as $key => $tur) { + if ($tur['id'] == $id) { + $this->Codigo->setText($tur['codigo']); + $this->Descricao->setText($tur['descricao']); + } + } + } + + + public function trocaTurno($sender,$param) { + $this->loadDadosTurno($sender->getSelectedValue()); + } + +} + ?>
\ No newline at end of file |