当前位置: 首页>>代码示例>>PHP>>正文


PHP DocumentRevision::fill_document_name_revision方法代码示例

本文整理汇总了PHP中DocumentRevision::fill_document_name_revision方法的典型用法代码示例。如果您正苦于以下问题:PHP DocumentRevision::fill_document_name_revision方法的具体用法?PHP DocumentRevision::fill_document_name_revision怎么用?PHP DocumentRevision::fill_document_name_revision使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DocumentRevision的用法示例。


在下文中一共展示了DocumentRevision::fill_document_name_revision方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: XTemplate

$xtpl = new XTemplate('modules/DocumentRevisions/DetailView.html');
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
if (isset($_REQUEST['return_module'])) {
    $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
}
if (isset($_REQUEST['return_action'])) {
    $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']);
}
if (isset($_REQUEST['return_id'])) {
    $xtpl->assign("RETURN_ID", $_REQUEST['return_id']);
}
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$focus->fill_document_name_revision($focus->document_id);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("DOCUMENT_NAME", $focus->name);
$xtpl->assign("CURRENT_REVISION", $focus->latest_revision);
$xtpl->assign("CHANGE_LOG", $focus->change_log);
$created_user = new User();
$created_user->retrieve($focus->created_by);
$xtpl->assign("CREATED_BY", $created_user->first_name . ' ' . $created_user->last_name);
$xtpl->assign("DATE_CREATED", $focus->date_entered);
$xtpl->assign("REVISION", $focus->revision);
$xtpl->assign("FILENAME", $focus->filename);
$xtpl->assign("FILE_NAME", $focus->filename);
$xtpl->assign("SAVE_FILE", $focus->id);
$xtpl->assign("FILE_URL", UploadFile::get_url($focus->filename, $focus->id));
$xtpl->assign("GRIDLINE", $gridline);
$xtpl->parse("main");
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:DetailView.php

示例2: XTemplate

$GLOBALS['log']->info("Document revision edit view");
$xtpl = new XTemplate('modules/DocumentRevisions/EditView.html');
$xtpl->assign("MOD", $mod_strings);
$xtpl->assign("APP", $app_strings);
if (isset($_REQUEST['return_module'])) {
    $xtpl->assign("RETURN_MODULE", $_REQUEST['return_module']);
}
if (isset($_REQUEST['return_action'])) {
    $xtpl->assign("RETURN_ACTION", $_REQUEST['return_action']);
}
if (isset($_REQUEST['return_id'])) {
    $xtpl->assign("RETURN_ID", $_REQUEST['return_id']);
}
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_document_revision_js());
$focus->fill_document_name_revision($_REQUEST['return_id']);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("DOCUMENT_NAME", $_REQUEST['document_name']);
$xtpl->assign("CURRENT_REVISION", $_REQUEST['document_revision']);
$xtpl->assign("FILE_URL", UploadFile::get_url($_REQUEST['document_filename'], $_REQUEST['document_revision_id']));
$xtpl->parse("main");
$xtpl->out("main");
//implements required fields check based on the required fields list defined in the bean.
require_once 'include/javascript/javascript.php';
$javascript = new javascript();
$javascript->setFormName('DocumentRevisionEditView');
$javascript->setSugarBean($focus);
$javascript->addAllFields('');
echo $javascript->getScript();
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:EditView.php

示例3: testfill_document_name_revision

 public function testfill_document_name_revision()
 {
     $documentRevision = new DocumentRevision();
     //execute the method and test if it works and does not throws an exception.
     try {
         $documentRevision->fill_document_name_revision();
         $this->assertTrue(true);
     } catch (Exception $e) {
         $this->fail();
     }
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:11,代码来源:DocumentRevisionTest.php


注:本文中的DocumentRevision::fill_document_name_revision方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。