Changeset 442 for trunk/app/models

Show
Ignore:
Timestamp:
04/29/08 21:44:41 (7 months ago)
Author:
aarkerio
Message:

Lo que sea

Location:
trunk/app/models
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/result_treasure.php

    r441 r442  
    88class ResultTreasure extends AppModel 
    99{ 
    10   public $name      = 'ResultTreasure'; 
     10  public $name       = 'ResultTreasure'; 
    1111     
    1212  public $belongsTo  = array( 
  • trunk/app/models/vclassroom.php

    r441 r442  
    7878                         ) 
    7979                       ); 
     80 
     81 // get student record 
     82 public function getRecord($vclassroom_id, $user_id) 
     83 { 
     84     $record = (string) ''; 
     85 
     86     $conditions = array('"'=>$vclassroom_id, '"UsersVclassroom"."user_id"'=>$user_id); 
     87   
     88     $tests      = $this->Vclassroom->Test->findAll($conditions, $fields); 
     89 
     90     foreach ($tests as $t)  
     91     { 
     92        
     93     }    
     94 
     95     $webquests  = $this->Vclassroom->Webquest->findAll($conditions, $fields); 
     96     
     97     $treasures  = $this->Vclassroom->Treasures->findAll($conditions, $fields); 
     98 
     99     return $record; 
     100 } 
     101 
    80102 //Check if the user already exist in the classroom 
    81103 public function chkMember($vclassroom_id, $user_id)