Procházet zdrojové kódy

Suppression de commentaires

Sevajol Bastien před 11 roky
rodič
revize
a8ca917a74

+ 0 - 45
src/Muzich/CoreBundle/Factory/Elements/Youtubecom.php Zobrazit soubor

@@ -33,53 +33,8 @@ class Youtubecom extends ElementFactory
33 33
       Element::DATA_THUMB_URL  => array('items' => array(0 => array('thumbnails' => 'medium'))),
34 34
       Element::DATA_TITLE      => array('items' => array(0 => array('snippet' => 'title'))),
35 35
     ));
36
-    //
37
-    //die(var_dump($response->getContent()));
38
-    //
39
-    //$video_data_dom = new \DOMDocument;
40
-    //try {
41
-    //  $video_data_dom->load("http://gdata.youtube.com/feeds/api/videos/". $ref_id);
42
-    //
43
-    //  if ($video_data_dom->getElementsByTagName("title"))
44
-    //  {
45
-    //    if ($video_data_dom->getElementsByTagName("title")->item(0))
46
-    //    {
47
-    //      if (($title = $video_data_dom->getElementsByTagName("title")->item(0)->nodeValue))
48
-    //      {
49
-    //        $this->element->setData(Element::DATA_TITLE, $title);
50
-    //      }
51
-    //    }
52
-    //  }
53
-    //}
54
-    //catch (\ErrorException $e)
55
-    //{
56
-    //  // Api injoignable
57
-    //}
58 36
   }
59 37
   
60
-  //public function retrieveDatas()
61
-  //{
62
-  //  $url_clean = $this->getCleanedUrl();
63
-  //  $ref_id = null;
64
-  //  
65
-  //  if (preg_match("#(v\/|watch\?v=)([\w\-]+)#", $url_clean, $chaines))
66
-  //  {
67
-  //    $ref_id = $chaines[2];
68
-  //  }
69
-  //  else if (preg_match("#(v=|watch\?v=)([\w\-]+)#", $url_clean, $chaines))
70
-  //  {
71
-  //    $ref_id = $chaines[2];
72
-  //  }
73
-  //  
74
-  //  $this->element->setData(Element::DATA_REF_ID, $ref_id);
75
-  //  
76
-  //  // Données API TODO: REFACTORISER
77
-  //  if ($ref_id)
78
-  //  {
79
-  //    $this->proceedAPIDatas($ref_id);
80
-  //  }
81
-  //}
82
-  
83 38
   public function proceedEmbedCode()
84 39
   {
85 40
     if (($ref_id = $this->element->getData(Element::DATA_REF_ID)))

+ 0 - 0
src/Muzich/CoreBundle/Factory/UrlMatchs.php Zobrazit soubor


+ 0 - 0
src/Muzich/CoreBundle/Tests/ElementFactory/UrlAnalyzerTest.php Zobrazit soubor


+ 0 - 0
src/Muzich/CoreBundle/lib/Element/UrlAnalyzer.php Zobrazit soubor