Esempio n. 1
0
 /**
  * Aggiunge un report alla collection selezionato e lo salva nel database.
  *
  * @param $author: id dell'autore del commento
  * @param $post: variabile di tipo Collection
  * @param $report: testo del report
  * @return: post aggiornato.
  */
 static function reportCollection($author, $collection, $report)
 {
     return PostManager::reportPost($author, $collection, $report);
 }
Esempio n. 2
0
 /**
  * Aggiunge un report alla collection selezionato e lo salva nel database.
  *
  * @param $author: id dell'autore del commento
  * @param $post: variabile di tipo Collection
  * @param $report: testo del report
  * @return: post aggiornato.
  */
 static function reportCollection($author, $collection, $report)
 {
     require_once "post/PostManager.php";
     return PostManager::reportPost($author, $collection, $report);
 }