Changeset 464 for trunk/app/models

Show
Ignore:
Timestamp:
05/08/08 18:23:35 (7 months ago)
Author:
aarkerio
Message:

Forums and topics improveds

Files:
1 modified

Legend:

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

    r452 r464  
    4343      'points' => VALID_NOT_EMPTY 
    4444   ); 
     45    
     46  public function chk($webquest_id, $user_id) 
     47  { 
     48    $data = $this->ResultWebquest->field('ResultWebquest.id', array("ResultWebquest.user_id"=>$user_id, "ResultWebquest.webquest_id"=>$webquest_id)); 
     49    
     50    if ($data != null ): 
     51          return false;    
     52    else: 
     53          return true; 
     54    endif; 
     55  } 
    4556} 
    4657?>