Sinisakrisan (Talk | contribs) (Created page with "===Description=== This event trigger when new video created at Jomsocial. ===Params=== *'''Video''' - consist of video object ===Example=== <syntaxhighlight lang="php"> CTab...") |
(→Description) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
===Description=== | ===Description=== | ||
− | This event | + | This event is triggered when a new video is created in JomSocial. |
===Params=== | ===Params=== | ||
*'''Video''' - consist of video object | *'''Video''' - consist of video object | ||
− | |||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
CTableVideo Object | CTableVideo Object | ||
Line 13: | Line 12: | ||
[creator] => 45 | [creator] => 45 | ||
) | ) | ||
+ | </syntaxhighlight> | ||
+ | <br /> | ||
+ | |||
+ | ===Example=== | ||
+ | <syntaxhighlight lang="php"> | ||
+ | function onVideoCreate($videoObj) | ||
+ | { | ||
+ | $videoTitle = $videoObj->title; | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br /> | <br /> |
Latest revision as of 07:21, 9 March 2013
Description
This event is triggered when a new video is created in JomSocial.
Params
- Video - consist of video object
CTableVideo Object ( [id] => 1 [title] => Video Title [creator] => 45 )
Example
function onVideoCreate($videoObj) { $videoTitle = $videoObj->title; . . . }