本文整理匯總了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());
}