コード例 #1
0
ファイル: start.php プロジェクト: rimpy/izap_videos
function izap_queue_cron($hook, $entity_type, $returnvalue, $params)
{
    izapTrigger_izap_videos();
}
コード例 #2
0
ファイル: delete.php プロジェクト: rimpy/izap_videos
<?php

/**
 * iZAP izap_videos
 *
 * @package Elgg videotizer, by iZAP Web Solutions.
 * @license GNU Public License version 3
 * @Contact iZAP Team "<*****@*****.**>"
 * @Founder Tarun Jangra "<*****@*****.**>"
 * @link http://www.izap.in/
 * 
 */
gatekeeper();
$guid = (int) get_input('video_id');
$izap_videos = izapVideoCheck_izap_videos($guid, TRUE);
if ($izap_videos->videotype == 'uploaded' && $izap_videos->converted == 'no') {
    $must_trigger = TRUE;
}
$owner = get_entity($izap_videos->container_guid);
if ($izap_videos->delete()) {
    system_message(elgg_echo('izap_videos:deleted'));
    if ($must_trigger === TRUE) {
        izapTrigger_izap_videos();
    }
} else {
    register_error(elgg_echo('izap_videos:notdeleted'));
}
forward('pg/videos/list/' . $owner->username);
exit;
コード例 #3
0
ファイル: izapLib.php プロジェクト: rimpy/izap_videos
/**
 * this function saves the entry for futher processing
 * @param string $file main filepath
 * @param int $videoId video guid
 * @param int $ownerGuid owner guid
 * @param int $accessId access id to be used after completion of encoding of video
 */
function izapSaveFileInfoForConverting_izap_videos($file, $video, $defined_access_id = 2)
{
    // this will not let save any thing if there is no file to convert
    if (!file_exists($file) || !$video) {
        return FALSE;
    }
    $queue = new izapQueue();
    $queue->put($video, $file, $defined_access_id);
    izapTrigger_izap_videos();
}