function do_base_interface()
 {
     global $mvgIP;
     require_once $mvgIP . '/includes/MV_MetavidInterface/MV_MetavidInterface.php';
     $MV_MetavidInterface = new MV_MetavidInterface('special');
     //render the interface to the screen:
     $MV_MetavidInterface->render_full();
 }
 function outputWikiText($text, $cache = true)
 {
     wfProfileIn(__METHOD__);
     $MV_MetavidInterface = new MV_MetavidInterface('stream', $this);
     // will require the mv_embed script for video playback:
     //mvfAddHTMLHeader( 'stream_interface' );
     $MV_MetavidInterface->render_full();
     wfProfileOut(__METHOD__);
 }
Example #3
0
function mvCustomEditor(&$article, &$user)
{
    global $wgTitle, $wgRequest;
    switch ($wgTitle->getNamespace()) {
        case MV_NS_SEQUENCE:
            $MvInterface = new MV_MetavidInterface('edit_sequence', $article);
            $MvInterface->render_full();
            return false;
            break;
        case MV_NS_STREAM:
            $editor = new MV_EditStreamPage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_MVD:
            $editor = new MV_EditDataPage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_SITTING:
            $editor = new MV_EditSittingPage($article);
            $editor->edit();
            return false;
            break;
            //case NS_USER:
            //	$editor = new MV_EditUser( $article );
            //	$editor->edit();
            //	return false;
            //break;
        //case NS_USER:
        //	$editor = new MV_EditUser( $article );
        //	$editor->edit();
        //	return false;
        //break;
        default:
            // continue proccessing (use default editor)
            return true;
            break;
    }
    /*
    		//@@todo how will 'external' editors work?
    		if( !$wgRequest->getVal( 'UseExternalEditor' ) || $action=='submit' || $internal ||
    		   $section || $oldid || ( !$user->getOption( 'externaleditor' ) && !$external ) ) {
    			$editor = new MvEditSequence( $article );
    			$editor->submit();
    		} elseif( $wgRequest->getVal( 'UseExternalEditor' ) && ( $external || $user->getOption( 'externaleditor' ) ) ) {
    			$mode = $wgRequest->getVal( 'mode' );
    			$extedit = new ExternalEdit( $article, $mode );
    			$extedit->edit();
    		}*/
}