本文整理汇总了PHP中Update::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Update::get方法的具体用法?PHP Update::get怎么用?PHP Update::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Update
的用法示例。
在下文中一共展示了Update::get方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index($id)
{
$update = Update::get();
$latest = null;
foreach ($update as $time) {
$latest = $time->time;
}
return View::make('article')->with('id', $id)->with('latest', $latest);
}
示例2: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$update = Update::get();
$latest = null;
foreach ($update as $time) {
$latest = $time->time;
}
echo $latest;
}
示例3: detect_update_system
function detect_update_system()
{
$loadData = Update::get();
$encodeData = serialize($loadData);
$md5Data = md5($encodeData);
$path = CACHES_PATH . 'dbcache/plugin/autoupdate/';
$filePath = $path . $md5Data . '.cache';
if (!file_exists($filePath)) {
Update::make();
File::create($filePath, 'ok');
}
}
示例4: update
public function update()
{
$post = array('alert' => '');
if (Request::has('btnStart')) {
// System::saveMailSetting(Request::get('mail'));
Update::make();
$post['alert'] = '<div class="alert alert-success">Update system success.</div>';
}
$post['data'] = Update::get();
// print_r($post);die();
View::make('admincp/head', array('title' => 'Update System - ' . ADMINCP_TITLE));
self::makeContents('updateVersion', $post);
View::make('admincp/footer');
}
示例5: testUpdate
public function testUpdate()
{
$update = new Update($this->driver);
$update->update('table')->set('a', '?')->set('b', '?')->values(['c' => '?', 'd' => '?'])->where('c=d');
$this->assertEquals('UPDATE table SET a=?, b=?, c=?, d=? WHERE c=d', $update->get());
}