PluginProbe
Vimeography: Vimeo Video Gallery WordPress Plugin / 0.6.3
Vimeography: Vimeo Video Gallery WordPress Plugin v0.6.3
2.4.9 2.4.8 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.8.1 0.6.9 0.6.9.1 0.6.9.2 0.7 0.8 All 103 releases
vimeography / lib / videos.php

videos.php in Vimeography: Vimeo Video Gallery WordPress Plugin 0.6.3, at lib/videos.php

40 lines 786 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Vimeography_Videos extends Vimeography_Core
4 {
5 public function __construct($settings)
6 {
7 parent::__construct($settings);
8 }
9
10 /**
11 * Get videos from the provided source.
12 *
13 * @access public
14 * @param mixed $type
15 * @return void
16 */
17 public function get($type = 'videos')
18 {
19 switch ($type)
20 {
21 //case 'info':
22 case 'videos':
23 $this->_type = $type;
24 break;
25 default:
26 throw new Vimeography_Exception('"'.$type.'" is not a valid content type.');
27 break;
28 }
29
30 if (! isset($this->_type))
31 throw new Vimeography_Exception('Please specify the type of information to retrieve from Vimeo.');
32
33 /*$data = array(
34 'channel_name' => $this->_channel_name,
35 'type' => $this->_type,
36 );*/
37
38 return $this->_retrieve();
39 }
40 }