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


PHP Record::getID方法代码示例

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


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

示例1: header

     header('Location:index.php?page=' . $include);
     exit;
 }
 $sql = "INSERT INTO downloadLog ( user_id, ip, numRows, encrypted, data ) VALUES ( ?, ?, ?, ?, ? )";
 $pA = array('isiis', $user->getID(), $_SERVER['REMOTE_ADDR'], $numRows, $encrypted, $data);
 DB::query($sql, $pA);
 $headRecord = new Record($dataQuery->rows[0]->id);
 $skipFields = array();
 $encryptedFields = array();
 $sql = "SELECT formFields.id as fieldID, labelText, pages_name, pages.label as pageLabel, CONCAT(pages_name,'_',fieldName) as finalFieldName, \n                        fieldName, formFields.type, pages.id as pageID, dl_name FROM formFields \n                        LEFT JOIN pages ON pages.name = pages_name \n                        WHERE dataName = 'record' AND pages_name != 'adverseevent'\n                        AND ( formFields.type != 'break' AND formFields.type != 'heading' AND formFields.type != 'data' )\n                        ORDER BY pageOrder, pages_name, entryorder";
 $result = DB::query($sql);
 $output = "'Signed',";
 $selectFields = array();
 $cbFields = array();
 foreach ($result->rows as $row) {
     if ($include === 'dlsite' && !$trial->parseBranches($row->pageID, $headRecord->getID())) {
         $skipFields[] = $row->fieldID;
         continue;
     }
     if ($headRecord->isFieldEncrypted($row->pages_name, $row->fieldName)) {
         $encryptedFields[] = $row->fieldID;
         if (!$encrypted && $row->fieldName !== 'age') {
             $skipFields[] = $row->fieldID;
             continue;
         }
     }
     switch ($row->type) {
         case 'checkbox':
             $sql = "SELECT value FROM formVal\n                                    WHERE operator = 'IN LIST' AND\n                                    formFields_id = ?";
             $pA = array('i', $row->fieldID);
             $valueTable = DB::query($sql, $pA);
开发者ID:uhtoff,项目名称:eCRF,代码行数:31,代码来源:process.php

示例2: addFlagInput

 public function addFlagInput($post)
 {
     $data = $this->record->getData($this->getPage());
     $flag = new Flag();
     $flag->link_id = $this->record->getID();
     $flag->pages_name = $this->getPage();
     foreach ($post as $key => $value) {
         $page = substr($key, 0, strpos($key, "-"));
         // Split out class and name from input field
         $fieldName = substr($key, strpos($key, "-") + 1);
         if ($page == 'flag') {
             $flag->set($fieldName, $value);
         }
     }
     if ($flag->isComplete()) {
         $data->delete($flag->getFieldName());
         $flag->saveToDB();
         $flag->getFromDB();
         $flag->flag_id = $flag->getID();
     } else {
         $flag = null;
     }
     return $flag;
 }
开发者ID:uhtoff,项目名称:eCRF,代码行数:24,代码来源:ecrflib.php


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