ke-cms v1.18.4
Classes
Functions
Cms
Kind: global class
new Cms()
オブジェクトコンストラクション
server(fn, op) ⇒ Void
サーバー起動
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
fn | function | RESTインターフェイス処理 |
op | Object | 起動オプション |
setting(op) ⇒ Object
実行オプションのセット(省略値解釈)
Kind: global function
Returns: Object - 編集後オプションオブジェクト
Param | Type | Description |
---|---|---|
op | Object | オプションオブジェクト |
sessionIn(req, res, op) ⇒ Void
セッションイン時の処理・クッキー情報など
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
req | Object | http request インターフェイス |
res | Object | http response インターフェイス |
op | Object | 実行オプション |
analyzeRequest(req) ⇒ Void
リクエストストリング(URI)の解析・分解
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
req | Object | httpリクエストインターフェイス |
getCookies(req) ⇒ Array
ウッキー情報の取り出し
Kind: global function
Returns: Array - クッキーストリング配列
Param | Type | Description |
---|---|---|
req | Object | http リクエストインターフェイス |
setCookies(key, value)
クッキーインタフェイスへのセット
Kind: global function
Param | Type | Description |
---|---|---|
key | String | クッキーキー |
value | String | クッキー値 |
valCookies(key) ⇒ String
クッキー血の参照
Kind: global function
Returns: String - 参照値
Param | Type | Description |
---|---|---|
key | String | クッキーキー |
putCookies() ⇒ String
出力用クッキーストリングの編集
Kind: global function
Returns: String - 出力用クッキーストリング
ctype(mdf) ⇒ String
コンテンツタイプを拡張子から編集
Kind: global function
Returns: String - コンテンツタイプ
Param | Type | Description |
---|---|---|
mdf | String | 拡張子 |
putFile(res, base) ⇒ Void
単純なファイル転送手続き
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスインターフェイス |
base | Steing | 基準フォルダ |
genFileCss(res, base) ⇒ Void
jcssファイルを併合して出力
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | responseオブジェクト |
base | String | 基底パス |
putExpand(res, base) ⇒ Void
パラメータ展開による出力(CSSなど)
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスインターフェイス |
base | string | 基本ホルダ |
putEscape(res, base) ⇒ Void
ソースデータ用の「<>」などのエスケープ出力
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスインターフェイス |
base | String | 基本フォルダ |
sendConfig(res) ⇒ Void
コンフィグ情報(INFOJ)を送信
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスインターフェイス |
debugSetdate(res, op) ⇒ Void
タイムシフト再生
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスオブジェクト |
op | Object | 実行オプション |
putHtml(url, base, res) ⇒ Void
通常のCMS展開出力
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
url | String | 指定URL |
base | string | 基本フォルダ |
res | Object | httpレスポンスオブジェクト |
getInfoj(base) ⇒ Void
INFOJテーブルを作成
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
base | String | 基本フォルダ |
pageinfo(fname, base) ⇒ Void
ページ定義ファイルの読み込み
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
fname | String | ファイル名 |
base | String | 基本フォルダ |
layer(lines) ⇒ Void
階層化対応
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
lines | Array | 階層データ |
expand(buf, base, dt) ⇒ String
HTMLへの挿入と展開
Kind: global function
Returns: String - HTML文
Param | Type | Description |
---|---|---|
buf | String | バッファデータ |
base | String | 基本フォルダ |
dt | Object | 展開用変数データ |
appendScript($) ⇒ Object
スクリプトタグの追加(Jquery,Google,responsive)
Kind: global function
Returns: Object - 編集後オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | Jqueryオブジェクト |
devPage($, dt) ⇒ Object
Attrcms-pageを展開
Kind: global function
Returns: Object - 編集後オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | Jqueryオブジェクト |
dt | Object | 展開変数 |
escape(x, force) ⇒ String
HTML文字をエスケープ
Kind: global function
Returns: String - 結果文字列
Param | Type | Description |
---|---|---|
x | String | 対象文字列 |
force | Boolean | 奇数、偶数行クラスを編集するtrue/false |
devInclude($) ⇒ Object
Attrcms-includeを展開
Kind: global function
Returns: Object - 展開結果オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | Jqueryオブジェクト |
devParts($) ⇒ Object
Attrcms-partsを展開
Kind: global function
Returns: Object - 展開結果オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | Jqueryオブジェクト |
devFrame($) ⇒ Object
Attrcms-frameを展開
Kind: global function
Returns: Object - 展開後結果オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | 編集対象Jqueryオブジェクト |
devBlock($) ⇒ Object
Attrcms-blockを展開
Kind: global function
Returns: Object - 展開後オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | 対象Jqueryオブジェクト |
devCss($) ⇒ Object
Attrcms-cssを展開
Kind: global function
Returns: Object - 展開結果オブジェクト
Param | Type | Description |
---|---|---|
$ | Object | 対象Jqueryオブジェクト |
debugInfo() ⇒ Object
デバッグ情報をページに追加
Kind: global function
Returns: Object - 展開結果オブジェクト
Parm: Object $ 展開対象Jqueryオブジェクト
pankuzu() ⇒ String
パンくずパーツ生成
Kind: global function
Returns: String - パンくずパーツHTML
navbar() ⇒ String
ナビゲーションパーツ生成
Kind: global function
Returns: String - ナビゲーションパーツHTMLテキスト
sidemenu() ⇒ String
サイドメニューパーツ生成
Kind: global function
Returns: String - サイドメニューHTMLテキスト
foot() ⇒ String
フッターパーツ
Kind: global function
Returns: String - フッター用HTMLストリング
guide() ⇒ String
ページ内ガードパーツ生成
Kind: global function
Returns: String - 結果HTMLテキスト
menu() ⇒ string
グループ内メニューパーツ生成
Kind: global function
Returns: string - 結果HTMLテキスト
history() ⇒ string
更新履歴パーツ生成
Kind: global function
Returns: string - 結果HTMLテキスト
develop2(fname, dt, tp, ix) ⇒ String
2段階構造展開パーツ生成
Kind: global function
Returns: String - 生成結果HTMLテキスト
Param | Type | Description |
---|---|---|
fname | String | テンプレートファイル名 |
dt | Object | 変数テーブル |
tp | String | タイプside/top2 |
ix | Integer | データインデックス |
selection(type, grp) ⇒ Array
メニューデータをパターン選択
Kind: global function
Returns: Array - メニューオブジェクト配列
Param | Type | Description |
---|---|---|
type | String | パターン top/top2/2nd/sibling/side |
grp | String | グループID |
toolbox() ⇒ Void
ツールボックスパーツ
Kind: global function
Returns: Void - none
color() ⇒ String
カラーサンプルを生成
Kind: global function
Returns: String - HTMLテキスト
menuBuild(op, force) ⇒ Void
メニューデータのインコア
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
op | Object | 実行オプション |
force | Boolean | 日付に関係なく更新 true/false |
sitemap(res) ⇒ String
サイトマップXMLの生成
Kind: global function
Returns: String - 生成XMLテキスト
Param | Type | Description |
---|---|---|
res | Object | httpレスポンスインターフェイス |
sort(dt, key, asc) ⇒ Array
メニューデータのソート
Kind: global function
Returns: Array - 結果オブジェクト配列
Param | Type | Description |
---|---|---|
dt | Array | メニューオブジェクト配列 |
key | String | キー項目 |
asc | String | asc/dsc 昇順/降順 |
validation(term) ⇒ Boolean
有効期間の判定
Kind: global function
Returns: Boolean - true/false OK/NG
Param | Type | Description |
---|---|---|
term | String | 有効期間表示(yy/mm/dd:yy/mm/dd) |
cleanup(op) ⇒ Void
セッションデータのクリーンアップ
Kind: global function
Returns: Void - none
Param | Type | Description |
---|---|---|
op | Object | 実行オプション |