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


PHP DateTimeHelper::minutesToString方法代碼示例

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


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

示例1: run

 public function run()
 {
     $columnsParameters = array(array('dbField' => 'PlayerEntity.name', 'dtField' => 'name', 'formatter' => function ($d, $row) {
         return \FonctionsUtiles::findIconJob($row["job"]) . " " . $d;
     }), array('dbField' => 'AccountEntity.login', 'dtField' => 'compte'), array('dbField' => 'PlayerEntity.job', 'dtField' => 'job'), array('dbField' => 'GmlistEntity.mauthority', 'dtField' => 'authority', 'formatter' => function ($d, $row) {
         return \AuthorityHelper::getLibelle($d);
     }), array('dbField' => 'PlayerEntity.playtime', 'dtField' => 'playtime', 'formatter' => function ($d, $row) {
         return \DateTimeHelper::minutesToString($d);
     }), array('dbField' => 'PlayerEntity.lastPlay', 'dtField' => 'lastPlay', 'formatter' => function ($d, $row) {
         return \DateTimeHelper::dateTimeToFormatedString($d);
     }), array('dbField' => 'AccountEntity.status', 'filterLevel' => 'strict', 'dtField' => 'status', 'formatter' => function ($d, $row) {
         return \FonctionsUtiles::findIconStatus($d);
     }), array('dbField' => 'PlayerEntity.ip', 'dtField' => 'ip'), array('dbField' => 'GmlistEntity.mid', 'dtField' => 'actions', 'formatter' => function ($d, $row) {
         $varButton = '<a class="btn btn-material btn-primary btn-sm" data-featherlight="ajax" href="pages/Admin/modules/GererEquipeJeu/GererEquipeJeuEdit.php?mode=mod&idMembre=' . $d . '"><i class="material-icons md-icon-edit"></i></a>';
         $varButton .= '<a class="btn btn-material btn-danger btn-sm " onclick="SuppressionMembreEquipe(' . $d . ')"><i class="material-icons md-icon-delete"></i></a>';
         return '<div class="btn-toolbar">' . $varButton . "</div>";
     }));
     $datatable = new \DataTable();
     $datatable->setColumnsParameters($columnsParameters)->setRequest($_GET)->from("\\Common\\Entity\\Gmlist", "GmlistEntity")->innerJoin("\\Player\\Entity\\Player", "PlayerEntity", "WITH", "PlayerEntity.name = GmlistEntity.mname")->innerJoin("\\Account\\Entity\\Account", "AccountEntity", "WITH", "AccountEntity.login = GmlistEntity.maccount");
     $datatable->getResult()->toJson();
 }
開發者ID:SylvainSimon,項目名稱:Metinify,代碼行數:21,代碼來源:listGererEquipeJeu.php

示例2: getMinutesToString

 public function getMinutesToString($minutes)
 {
     return \DateTimeHelper::minutesToString($minutes);
 }
開發者ID:SylvainSimon,項目名稱:Metinify,代碼行數:4,代碼來源:DateFunctionExtension.php


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