forked from digitick/yii-faceplugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LiveStream.php
50 lines (45 loc) · 1.13 KB
/
LiveStream.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Wrappers for facebook plugins.
* @copyright © Digitick <www.digitick.net> 2011
* @license GNU Lesser General Public License v3.0
* @author Ianaré Sévi
*/
require_once 'EFaceplugsAppLink.php';
/**
* The Live Stream plugin lets your users share activity and comments in
* real-time as they interact during a live event.
*
* @see http://developers.facebook.com/docs/reference/plugins/live-stream
*/
class LiveStream extends EFaceplugsAppLink
{
/**
* Width of the plugin in pixels. Default width: 400px.
* @var integer
*/
public $width;
/**
* The height of the plugin in pixels. Default height: 500px.
* @var integer
*/
public $height;
/**
* The URL that users are redirected to when they click on your app name on
* a status (if not specified, your Connect URL is used).
* @var string
*/
public $via_url;
/**
* If you have multiple live stream boxes on the same page, specify a
* unique xid for each.
* @var integer
*/
public $xid;
public function run()
{
parent::run();
$params = $this->getParams();
echo CHtml::openTag('fb:live-stream', $params), CHtml::closeTag('fb:live-stream');
}
}