個人用ツール

「ver4/関数リファレンス/getCurrentContent」を編集中

提供: baserCMS公式ガイド

移動: 案内, 検索

警告: ログインしていません。

編集すると、IPアドレスがこのページの編集履歴に記録されます。
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 編集中の文章
行2: 行2:
  
 
## 説明
 
## 説明
現在のコンテンツ情報を取得する。
+
現在のコンテンツ情報を取得する
  
 
## 使い方
 
## 使い方
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
<?php $this->BcBaser->getCurrentContent(); ?>
+
$this->BcBaser->getCurrentContent();
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
## パラメータ
  
  
 
## 戻り値
 
## 戻り値
(mixed)
+
 
: null
+
(mixed)null
  
  
 
## 用例
 
## 用例
 
### 基本
 
### 基本
現在のコンテンツ情報を取得する。
 
 
####コード
 
####コード
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
<?php var_dump($this->BcBaser->getCurrentContent()); ?>
+
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
####出力
 
####出力
 +
<syntaxhighlight lang="html5">
 +
 +
</syntaxhighlight>
 +
 +
### 応用
 +
####コード
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
array (size=34)
+
 
  'id' => string '11' (length=2)
+
  'name' => string 'service1' (length=8)
+
  'plugin' => string 'Core' (length=4)
+
  'type' => string 'Page' (length=4)
+
  'entity_id' => string '3' (length=1)
+
  'url' => string '/service/service1' (length=17)
+
  'site_id' => string '0' (length=1)
+
  'alias_id' => null
+
  'main_site_content_id' => null
+
  'parent_id' => string '6' (length=1)
+
  'lft' => string '35' (length=2)
+
  'rght' => string '36' (length=2)
+
  'level' => string '2' (length=1)
+
  'title' => string 'サービス1' (length=15)
+
  'description' => string '' (length=0)
+
  'eyecatch' => string '' (length=0)
+
  'author_id' => string '1' (length=1)
+
  'layout_template' => string '' (length=0)
+
  'status' => boolean true
+
  'publish_begin' => null
+
  'publish_end' => null
+
  'self_status' => boolean true
+
  'self_publish_begin' => null
+
  'self_publish_end' => null
+
  'exclude_search' => boolean false
+
  'created_date' => string '2018-10-16 23:30:26' (length=19)
+
  'modified_date' => string '2018-10-16 23:30:26' (length=19)
+
  'site_root' => boolean false
+
  'deleted_date' => null
+
  'deleted' => boolean false
+
  'exclude_menu' => boolean false
+
  'blank_link' => boolean false
+
  'created' => string '2016-07-31 16:46:32' (length=19)
+
  'modified' => string '2018-10-24 23:59:26' (length=19)
+
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
####出力
 +
<syntaxhighlight lang="html5">
 +
 +
</syntaxhighlight>
 +
 +
## 注
 +
 +
## 変更履歴
 +
 +
## ソースファイル
 +
 +
## 関連資料
 +
 +
##類似の関数
 +
 +
 +
[[Category:関数リファレンスver4]]

baserCMS公式ガイドへのすべての投稿は、他の利用者によって編集、変更、除去される場合があります。 あなたの投稿を、他人が遠慮なく編集するのを望まない場合は、ここには投稿しないでください。
また、投稿するのは、あなたが書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください (詳細は[[Basercms:著作権 ]]を参照)。 著作権保護されている作品を、許諾なしに投稿してはいけません!

Add Categories
Update Categories
  

中止 | 編集の仕方 (新しいウィンドウで開きます)