| 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 |
} |