Exemplo n.º 1
0
 private static function delete($mediaType, $canalId)
 {
     $messages = Member_MediaFactory::getAllMessage($mediaType, $canalId);
     foreach ($messages as $mes) {
         if (isset($_POST[$mes['id']])) {
             Member_MediaFactory::deleteMessage($mes['id']);
         }
     }
 }
Exemplo n.º 2
0
 /** Retourne le contenu du média accessible
  * 
  * @return array
  */
 public function getMediaContenu($type, $channel)
 {
     if ($this->mediaType != 'tous') {
         if ($this->mediaType != $type) {
             throw new GameException('Type de média non supporté par l\'item ' . $this->invId . '.');
             return;
         }
     }
     return Member_MediaFactory::getAllMessage($type, $channel);
 }
Exemplo n.º 3
0
 public function getMediaContenu()
 {
     return Member_MediaFactory::getAllMessage($this->mediaType, $this->channelId);
 }