Esempio n. 1
0
 public static function samples()
 {
     global $user;
     $template = new HTMLTemplate("sample/home/summary/my_samples.html");
     $template->set_var("samples", Sample_Wrapper::count_user_samples($user->get_user_id()));
     return $template->get_string();
 }
Esempio n. 2
0
 /**
  * @return integer
  */
 public static function count_user_related_samples()
 {
     global $user;
     return Sample_Wrapper::count_user_samples($user->get_user_id());
 }