1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
- namespace Muzich\CoreBundle\Factory;
-
- use Muzich\CoreBundle\Entity\Element;
-
- class UrlMatchs
- {
- /*
- * Si il y a un Element::TYPE_NOTMATCH le placer en début de tableau !
- */
-
- public static $jamendo = array(
- Element::TYPE_TRACK => array(
- // http://www.jamendo.com/fr/track/894974
- "#^\/[a-zA-Z0-9_-]+\/track\/([0-9]+)#" => 1,
- // http://www.jamendo.com/fr/track/347602/come-come
- "#^\/[a-zA-Z0-9_-]+\/track\/([0-9]+)\/.#" => 1
- ),
- Element::TYPE_ALBUM => array(
- // http://www.jamendo.com/fr/album/3409
- "#^\/[a-zA-Z0-9_-]+\/album\/([0-9]+)#" => 1,
- // http://www.jamendo.com/fr/list/a45666/proceed-positron...
- "#^\/[a-zA-Z0-9_-]+\/list\/a([0-9]+)\/.#" => 1
- )
- );
-
- public static $soundcloud = array(
- Element::TYPE_NOTMATCH => array(
- "#\/search\?q#" => null
- ),
- Element::TYPE_OTHER => array(
- // http://soundcloud.com/matas/sets/library-project
- "#^\/[a-zA-Z0-9_-]+\/sets\/[a-zA-Z0-9_-]+#" => null,
- // http://soundcloud.com/noisia/black-sun-empire-noisia-feed
- // http://soundcloud.com/user4818423/mechanika-crew-andrew-dj-set
- "#^\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+#" => null
- )
- );
-
- public static $dailymotion = array(
- Element::TYPE_OTHER => array(
- // http://dailymotion.com/video/xnqcwx_le-nazisme-dans-le-couple_fun#hp-v-v2
- "#\/(video\/)([a-zA-Z0-9]+)([a-zA-Z0-9_-]*)#" => 2
- )
- );
- }
|