'name' => 'featured'
);
}
+ $e[] = array(
+ 'type' => 'text',
+ 'req' => false,
+ 'name' => 'title',
+ 'display' => 'Title',
+ 'opts' => array('class' => 'text','size'=>50)
+ );
$e[] = array(
'type' => 'text',
'req' => true,
$video = new Toolkit_Videos_Video();
}
$video->setVideo_url($values['video_url'])
+ ->setTitle($values['title'])
->setFeatured($values['featured'])
->setActive($values['active']);
--- /dev/null
+--
+-- Update the video table
+--
+ALTER TABLE videos.videos ADD title TEXT;
{
protected $id;
+ protected $title;
protected $video_url;
protected $pos;
protected $featured;
}
return $this;
}
+ public function getTitle()
+ {
+ return $this->title;
+ }
+
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ return $this;
+ }
/**
* video_url getter
*/
public function getVideoTitle()
{
+ return $this->getTitle();
$url = "http://gdata.youtube.com/feeds/api/videos/". $this->getVideoCode();
$ch = curl_init();
$curlOptions = array(
if ($res) {
$video = new Toolkit_Videos_Video();
$video->setId($res['id'])
+ ->setTitle($res['title'])
->setVideo_url($res['video_url'])
->setActive($res['active'])
->setfeatured($res['featured'])
$this->addColumn(
new Structures_DataGrid_Column(
- 'Video Url',
- 'video_url',
+ 'Title',
+ 'title',
null
)
);