「ver4/関数リファレンス/getUpdateInfo」の版間の差分
提供: baserCMS公式ガイド
Katokaisya (トーク | 投稿記録) (ページの作成:「## 説明 更新情報を取得する ## 使い方 <syntaxhighlight lang="php"> $this->BcBaser->getUpdateInfo(); </syntaxhighlight> ## パラメータ ## 戻り値...」) |
|||
(同じ利用者による、間の2版が非表示) | |||
行1: | 行1: | ||
## 説明 | ## 説明 | ||
− | + | 更新情報を取得する。<br> | |
+ | 更新日は、'''編集画面 > オプション > 作成者 > [更新日]'''から、手動で更新します。 | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->getUpdateInfo(); | + | <?php $this->BcBaser->getUpdateInfo(); ?> |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
## 戻り値 | ## 戻り値 | ||
+ | (string) | ||
+ | : コンテンツ更新情報 | ||
## 用例 | ## 用例 | ||
### 基本 | ### 基本 | ||
+ | 更新情報を取得し、echoで出力する。 | ||
####コード | ####コード | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
+ | <?php $this->BcBaser->getUpdateInfo(); ?> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
####出力 | ####出力 | ||
<syntaxhighlight lang="html5"> | <syntaxhighlight lang="html5"> | ||
− | + | 作成日 | |
+ | 2018/10/16 23:30 | ||
+ | 最終更新日 | ||
+ | 2018/10/31 20:30 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
##類似の関数 | ##類似の関数 | ||
− | + | - [updateInfo](/ver4/関数リファレンス/updateInfo) - 更新情報を出力する | |
− | [ | + | - [getContentCreatedDate](/ver4/関数リファレンス/getContentCreatedDate) - コンテンツ作成日を取得 |
+ | - [getContentModifiedDate](/ver4/関数リファレンス/getContentModifiedDate) - コンテンツ更新日を取得 |
2019年1月17日 (木) 00:57時点における最新版
説明
更新情報を取得する。
更新日は、編集画面 > オプション > 作成者 > [更新日]から、手動で更新します。
使い方
<?php $this->BcBaser->getUpdateInfo(); ?>
戻り値
- (string)
- コンテンツ更新情報
用例
基本
更新情報を取得し、echoで出力する。
コード
<?php $this->BcBaser->getUpdateInfo(); ?>
出力
作成日 2018/10/16 23:30 最終更新日 2018/10/31 20:30
類似の関数
- updateInfo - 更新情報を出力する
- getContentCreatedDate - コンテンツ作成日を取得
- getContentModifiedDate - コンテンツ更新日を取得