@@ 44-53 (lines=10) @@ | ||
41 | * @param CActiveRecord|string $channel |
|
42 | * @param null $containerId |
|
43 | */ |
|
44 | public function comments($channel, $containerId = null) |
|
45 | { |
|
46 | Yii::app()->controller->widget('CackleWidget', array( |
|
47 | 'widget' => CackleWidget::COMMENT, |
|
48 | 'siteId' => $this->siteId, |
|
49 | 'channel' => $channel, |
|
50 | 'container' => $containerId, |
|
51 | 'ssoAuth' => $this->singleSignOn ? $this->getSingleSignOnString() : '', |
|
52 | )); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param $channel |
|
@@ 59-68 (lines=10) @@ | ||
56 | * @param $channel |
|
57 | * @param null $containerId |
|
58 | */ |
|
59 | public function reviews($channel, $containerId = null) |
|
60 | { |
|
61 | Yii::app()->controller->widget('CackleWidget', array( |
|
62 | 'widget' => CackleWidget::REVIEW, |
|
63 | 'siteId' => $this->siteId, |
|
64 | 'channel' => $channel, |
|
65 | 'container' => $containerId, |
|
66 | 'ssoAuth' => $this->singleSignOn ? $this->getSingleSignOnString() : array() |
|
67 | )); |
|
68 | } |
|
69 | ||
70 | protected function getSingleSignOnString() |
|
71 | { |