Esempio n. 1
0
 /**
  * Check if the attach step is completed
  *
  * @param      integer $id Resource ID
  * @return     integer # > 1 = step completed, 0 = not completed
  */
 public function step_attach_check($id)
 {
     if ($id) {
         $ra = new Assoc($this->database);
         $total = $ra->getCount($id);
     } else {
         $total = 0;
     }
     return $total;
 }