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']); } } }
/** 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); }
public function getMediaContenu() { return Member_MediaFactory::getAllMessage($this->mediaType, $this->channelId); }