本文整理汇总了PHP中Record::read方法的典型用法代码示例。如果您正苦于以下问题:PHP Record::read方法的具体用法?PHP Record::read怎么用?PHP Record::read使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Record
的用法示例。
在下文中一共展示了Record::read方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: read_by_doc
public static function read_by_doc($doc_id)
{
return parent::read(['id'], FALSE, ['doc_id = ?', $doc_id])[0];
}
示例2: unset
if ($_POST) {
$id = $_POST['id'];
$update = $_POST['record'];
if ($record->update($id, $update)) {
Flash::success('Record Successfully Updated!!');
unset($_POST);
} else {
Flash::error('Record Could Not Be Updated!!');
}
}
if (isset($_GET['id'])) {
$user_id = $_GET['id'];
} else {
$user_id = $_SESSION['user_id'];
}
$data = $record->read($user_id);
require 'templates/header.php';
?>
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Patient Record
<small>View Records</small>
</h1>
<ol class="breadcrumb">
示例3: find_one
public static function find_one($email, $password)
{
$c_password = crypt($password, SALT);
$model = parent::read(['*'], TRUE, ['email = ? AND password = ?', $email, $c_password]);
return isset($model['error']) ? FALSE : $model;
}
示例4: by_name
public static function by_name($name)
{
return parent::read(['doc.*', self::$props['content']], TRUE, ["name = ?", $name]);
}