當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FileData::getComment方法代碼示例

本文整理匯總了PHP中FileData::getComment方法的典型用法代碼示例。如果您正苦於以下問題:PHP FileData::getComment方法的具體用法?PHP FileData::getComment怎麽用?PHP FileData::getComment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FileData的用法示例。


在下文中一共展示了FileData::getComment方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: list

    list($_REQUEST['id'], $revision_id) = explode('_', $_REQUEST['id']);
}
$datafile = new FileData($_REQUEST['id'], $pdo);
// verify
if ($datafile->getError() != null) {
    header('Location:error.php?ec=2');
    exit;
} else {
    // obtain data from resultset
    $owner_full_name = $datafile->getOwnerFullName();
    $owner = $owner_full_name[1] . ', ' . $owner_full_name[0];
    $real_name = $datafile->getRealName();
    $category = $datafile->getCategoryName();
    $created = $datafile->getCreatedDate();
    $description = $datafile->getDescription();
    $comments = $datafile->getComment();
    $status = $datafile->getStatus();
    $id = $_REQUEST['id'];
    // corrections
    if ($description == '') {
        $description = msg('message_no_description_available');
    }
    if ($comments == '') {
        $comments = msg('message_no_author_comments_available');
    }
    if ($datafile->isArchived()) {
        $filename = $GLOBALS['CONFIG']['archiveDir'] . e::h($id) . '.dat';
    } else {
        $filename = $GLOBALS['CONFIG']['dataDir'] . e::h($id) . '.dat';
    }
    ?>
開發者ID:msusoko,項目名稱:opendocman,代碼行數:31,代碼來源:history.php

示例2: header

 $result = $department_stmt->fetchAll();
 if ($department_stmt->rowCount() != 1) {
     header('Location:error.php?ec=14');
     exit;
     //non-unique error
 }
 $filedata = new FileData($data_id, $pdo);
 // error check
 if (!$filedata->exists()) {
     header('Location:error.php?ec=2');
     exit;
 } else {
     $category = $filedata->getCategory();
     $realname = $filedata->getName();
     $description = $filedata->getDescription();
     $comment = $filedata->getComment();
     $owner_id = $filedata->getOwner();
     $department = $filedata->getDepartment();
     //CHM
     $table_name_query = "SELECT table_name FROM {$GLOBALS['CONFIG']['db_prefix']}udf WHERE field_type = '4'";
     $table_name_stmt = $pdo->prepare($table_name_query);
     $table_name_stmt->execute();
     $result = $table_name_stmt->fetchAll();
     $num_rows = $table_name_stmt->rowCount();
     $t_name = array();
     $i = 0;
     foreach ($result as $data) {
         $explode_v = explode('_', $data['table_name']);
         $t_name = $explode_v[2];
         $i++;
     }
開發者ID:watsonad,項目名稱:opendocman,代碼行數:31,代碼來源:edit.php


注:本文中的FileData::getComment方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。