public function onLoad($param)
 {
     parent::onLoad($param);
     //Fill TRepeater with user names
     $results = $this->Module->Database->Execute("SELECT * FROM users ORDER BY name");
     if ($results) {
         $data = array();
         while (!$results->EOF) {
             $fields = $results->fields;
             //Skip current user
             if ($fields['id'] != $this->User->getId()) {
                 $data[] = array('userid' => $fields['id'], 'username' => $fields['name'], 'email' => $fields['email']);
             }
             $results->MoveNext();
             $this->UserTable->setDataSource($data);
         }
         $results->Close();
     }
     $this->dataBind();
 }
 public function onLoad($param)
 {
     parent::onLoad($param);
 }
Beispiel #3
0
 public function onInit($param)
 {
     parent::onInit($param);
 }