CORE
[ class tree: CORE ] [ index: CORE ] [ all elements ]

Class: Lambda

Source Location: /Lambda.class.php

Class Overview


フレームワーク: Lambda


Variables

Constants

Methods



Class Details

[line 50]
フレームワーク: Lambda

PHP version 5




[ Top ]


Class Variables

static $appdir =

[line 54]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $charset =  'UTF-8'

[line 75]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $get =

[line 55]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $global =

[line 55]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $mainmodule =

[line 54]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $mobile_subdir =

[line 54]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $pathinfo =

[line 54]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $post =

[line 55]



Tags:

access:  protected

Type:   mixed


[ Top ]

$error = array()

[line 62]



Tags:

access:  protected

Type:   mixed


[ Top ]

$logic =

[line 58]



Tags:

access:  protected

Type:   mixed


[ Top ]

$modular =

[line 57]



Tags:

access:  protected

Type:   mixed


[ Top ]

$module =

[line 57]



Tags:

access:  protected

Type:   mixed


[ Top ]

$param = array()

[line 61]



Tags:

access:  protected

Type:   mixed


[ Top ]

$prep =

[line 58]



Tags:

access:  protected

Type:   mixed


[ Top ]

$response = array()

[line 60]



Tags:

access:  protected

Type:   mixed


[ Top ]

$view =

[line 58]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method getAppDir [line 256]

static str getAppDir( )

アプリケーションディレクトリを返却する



Tags:

return:  アプリケーションディレクトリ
access:  protected


[ Top ]

static method getEnv [line 118]

static mixed getEnv( [str $key = ''], [mixed $fallback = ''])

コンフィグ情報を返却する



Tags:

return:  コンフィグ情報
access:  public


Parameters:

str   $key   キー
mixed   $fallback   存在しない時の代替

[ Top ]

static method getGlobal [line 128]

static array getGlobal( )

グローバル変数を返却する (PHPスーパーグローバルは除く)



Tags:

return:  グローバル変数
access:  public


[ Top ]

static method getMobileSubDir [line 275]

static str getMobileSubDir( )

モバイルサブディレクトリを返却する



Tags:

return:  モバイルサブディレクトリ
access:  protected


[ Top ]

static method getPathInfo [line 320]

static str getPathInfo( )

スーパーグローバル: PATH_INFO を返却する



Tags:

return:  or $_SERVER['PATH_INFO'] or ''
access:  protected


[ Top ]

static method getQueryString [line 395]

static str getQueryString( )

クエリーストリング を返却する



Tags:

return:  クエリーストリング
access:  protected


[ Top ]

static method getRequestPath [line 385]

static str getRequestPath( )

リクエストパス を返却する



Tags:

return:  リクエストパス
access:  protected


[ Top ]

static method getServerEnv [line 502]

static str getServerEnv( str $varname)

サーバー環境変数を返却する



Tags:

return:  環境変数
access:  protected


Parameters:

str   $varname   変数名

[ Top ]

static method getSuffix [line 489]

static str getSuffix( str $modular)

サフィックスを返却する



Tags:

return:  サフィックス ex) .view.php
access:  protected


Parameters:

str   $modular   モジュラー

[ Top ]

static method getURI [line 205]

static str getURI( [boolean $schema = true])

URI(URL)を返却する



Tags:

access:  public


Parameters:

boolean   $schema   https?スキーマを付与するか否か

[ Top ]

static method getURL [line 209]

static void getURL( [ $schema = true])



Tags:

access:  public


Parameters:

   $schema  

[ Top ]

static method getVersion [line 90]

static str getVersion( )

バージョン情報を返却する



Tags:

return:  バージョン情報
access:  public


[ Top ]

static method httpHost [line 139]

static str httpHost( [boolean $schema = false])

HTTP HOST を返却する



Tags:

access:  public


Parameters:

boolean   $schema   https?スキーマを付与するか否か

[ Top ]

static method httpQueryString [line 164]

static str httpQueryString( )

QUERY_STRING を返却する



Tags:

access:  public


[ Top ]

static method httpRequestDir [line 175]

static str httpRequestDir( )

リクエストされたディレクトリパスを返却する ※ 末尾の / (フラッシュ) は含めない



Tags:

access:  public


[ Top ]

static method httpRequestUri [line 155]

static str httpRequestUri( )

REQUEST_URI を返却する



Tags:

access:  public


[ Top ]

static method inspectModule [line 435]

static void inspectModule( str $module)

モジュール名の妥当性検証



Tags:

access:  protected


Parameters:

str   $module   モジュール名

[ Top ]

static method isDisplayErrors [line 581]

static void isDisplayErrors( )

エラー表示モードの判定



Tags:

access:  protected


[ Top ]

static method isMobile [line 237]

static void isMobile( )

モバイルからのリクエストか否か



Tags:

access:  protected


[ Top ]

static method isSSL [line 195]

static boolean isSSL( )

SSLか否か



Tags:

access:  public


[ Top ]

static method normalizeModule [line 448]

static str normalizeModule( str $path)

モジュール名の正規化



Tags:

return:  モジュール名
access:  protected


Parameters:

str   $path   URL形式の文字列

[ Top ]

static method ntrim [line 550]

static void ntrim( $mixed)

recursive ntrim



Tags:

access:  protected


Parameters:

   $mixed  

[ Top ]

static method output [line 218]

static void output( str $output)

出力する (正規表現にて、文字列置換を行う機能も併せ持つ)



Tags:

access:  public


Parameters:

str   $output   出力内容

[ Top ]

static method rh [line 536]

static void rh( $mixed)

recursive htmlspecialchars



Tags:

access:  protected


Parameters:

   $mixed  

[ Top ]

static method sendHttpHeader [line 573]

static void sendHttpHeader( )

HTTP HEADER を送出する



Tags:

access:  protected


[ Top ]

static method setAppDir [line 246]

static void setAppDir( str $dir)

アプリケーションディレクトリをセットする



Tags:

access:  protected


Parameters:

str   $dir   アプリケーションディレクトリ

[ Top ]

static method setEnv [line 99]

static void setEnv( $arr)

lambda environment.



Tags:

access:  public


Parameters:

array   $arr   lambda環境設定情報

[ Top ]

static method setGlobal [line 296]

static void setGlobal( )

グローバル変数をセットする (PHPスーパーグローバルは除く)



Tags:

access:  protected


[ Top ]

static method setMainModule [line 287]

static void setMainModule( str $path)

メインモジュール名をセットする



Tags:

access:  protected


Parameters:

str   $path   URL形式の文字列

[ Top ]

static method setMobileSubDir [line 265]

static void setMobileSubDir( str $dir)

モバイルサブディレクトリをセットする



Tags:

access:  protected


Parameters:

str   $dir   モバイルサブディレクトリ

[ Top ]

static method setPathInfo [line 309]

static void setPathInfo( )

スーパーグローバル: PATH_INFO をセットする



Tags:

access:  protected


[ Top ]

static method setRequest [line 329]

static void setRequest( )

リクエスト($_GET, $_POST)をセットする



Tags:

access:  protected


[ Top ]

static method splitPathInfo [line 405]

static array splitPathInfo( )

PathInfo を path と querystring に分割する



Tags:

return:  array(path, querystring)
access:  protected


[ Top ]

static method stripDummyExt [line 421]

static str stripDummyExt( str $str)

ダミー拡張子を除去する



Tags:

return:  ダミー拡張子を除去した文字列
access:  protected


Parameters:

str   $str   対象文字列

[ Top ]

static method terminate [line 512]

static void terminate( str $msg, [int $sig = -1])

強制終了させる



Tags:

access:  protected


Parameters:

str   $msg   メッセージ
int   $sig   シグナル

[ Top ]

constructor __construct [line 597]

Lambda __construct( [str $appdir = null])

constructor



Tags:

access:  public


Parameters:

str   $appdir   アプリケーションディレクトリ

[ Top ]

method getError [line 836]

mixed getError( [str $key = ''], [mixed $fallback = ''])

エラーを返却する



Tags:

return:  エラー値
access:  public


Parameters:

str   $key   エラーのキー名
mixed   $fallback   存在しない時の代替

[ Top ]

method getLogic [line 746]

str getLogic( )

ロジック名を返却する



Tags:

return:  ロジック名
access:  public


[ Top ]

method getMainModule [line 666]

str getMainModule( )

メインモジュール名を返却する



Tags:

return:  メインモジュール名
access:  public


[ Top ]

method getMainModuleGroup [line 684]

str getMainModuleGroup( )

メインモジュールのグループ名を返却する



Tags:

return:  メインモジュールのグループ名
access:  public


[ Top ]

method getModular [line 715]

str getModular( str $module, str $suffix)

モジュラーを返却する



Tags:

return:  モジュラー
access:  public


Parameters:

str   $module   モジュール名
str   $suffix   接尾辞

[ Top ]

method getModule [line 704]

str getModule( )

モジュール名を返却する



Tags:

return:  モジュール名
access:  public


[ Top ]

method getPrep [line 764]

str getPrep( )

プレップ名を返却する



Tags:

return:  プレップ名
access:  public


[ Top ]

method getRequest [line 1137]

mixed getRequest( str $var, str $key, mixed $fallback, [str $regex = ''])

リクエスト($_GET, $_POST, $param)を返却する



Tags:

return:  リクエスト
access:  protected


Parameters:

str   $var   `get' or `post' or `param'
str   $key   リクエストのキー名
mixed   $fallback   存在しない時の代替
str   $regex   正規表現 (マッチした場合のみ返却したい時に利用。スカラー変数のみ対応)

[ Top ]

method getResponse [line 808]

mixed getResponse( [str $key = ''], [mixed $fallback = ''])

レスポンスを返却する



Tags:

return:  レスポンス値
access:  public


Parameters:

str   $key   レスポンスのキー名
mixed   $fallback   存在しない時の代替

[ Top ]

method getView [line 782]

str getView( )

ビュー名を返却する



Tags:

return:  ビュー名
access:  public


[ Top ]

method hasHttpCookie [line 947]

boolean hasHttpCookie( str $key)

クッキーの存在確認



Tags:

access:  public


Parameters:

str   $key   クッキーのキー名

[ Top ]

method hasHttpGet [line 905]

boolean hasHttpGet( str $key)

ゲットリクエスト($_GET)の存在確認



Tags:

access:  public


Parameters:

str   $key   ゲットリクエストのキー名

[ Top ]

method hasHttpPost [line 915]

boolean hasHttpPost( str $key)

ポストリクエスト($_POST)の存在確認



Tags:

access:  public


Parameters:

str   $key   ポストリクエストのキー名

[ Top ]

method hasValidatorError [line 1070]

bool hasValidatorError( )

バリデーターエラーの存在確認



Tags:

access:  public


[ Top ]

method httpCookie [line 926]

void httpCookie( str $key, [str $val = null], [ $p = array()])

クッキーの取得/保存



Tags:

access:  public


Parameters:

str   $key   クッキーのキー名
str   $val   保存する値
array   $p   array(expire, path, domain, secure);

[ Top ]

method httpGet [line 865]

mixed httpGet( [str $key = ''], [mixed $fallback = ''], [str $regex = ''])

ゲットリクエスト($_GET)を返却する

spec: 1) 制御文字(TAB, LF, CR, SPACE以外)はすべて除去される 2) 前後のホワイトスペース、全角スペースは除去される




Tags:

return:  ゲットリクエスト
access:  public


Parameters:

str   $key   ゲットリクエストのキー名
mixed   $fallback   存在しない時の代替
str   $regex   正規表現 (マッチした場合のみ返却したい時に利用。スカラー変数のみ対応)

[ Top ]

method httpPost [line 888]

mixed httpPost( [str $key = ''], [mixed $fallback = ''], [str $regex = ''])

ポストリクエスト($_POST)を返却する

spec: 1) 制御文字(TAB, LF, CR, SPACE以外)はすべて除去される 2) 前後のホワイトスペース、全角スペースは除去される




Tags:

return:  ポストリクエスト
access:  public


Parameters:

str   $key   ポストリクエストのキー名
mixed   $fallback   存在しない時の代替
str   $regex   正規表現 (マッチした場合のみ返却したい時に利用。スカラー変数のみ対応)

[ Top ]

method invoke [line 1080]

void invoke( Lambda $lmd, str $modular)

モジュラーを実行する



Tags:

access:  public


Parameters:

obj   $lmd   ラムダオブジェクト
str   $modular   モジュラー

[ Top ]

method invokeFunction [line 1041]

mixed invokeFunction( str $module, [ $params = array()])

ファンクションを実行する



Tags:

return:  ファンクションの実行結果
access:  public


Parameters:

str   $module   モジュール名
array   $params   パラメーター

[ Top ]

method invokeModule [line 960]

str invokeModule( str $module, [ $params = array()], [bool $logic = true], [bool $function = false])

モジュールを実行する



Tags:

return:  出力用文字列
access:  public


Parameters:

str   $module   モジュール名
array   $params   パラメーター
bool   $logic   Logicモジュラーを呼び出すか否か
bool   $function   Functionモジュラーを呼び出すか否か

[ Top ]

method invokeValidator [line 1052]

bool invokeValidator( str $script, $arr)

バリデーターを実行する



Tags:

access:  public


Parameters:

str   $script   バリデータースクリプト
array   $arr   検証する値を格納した配列(ハッシュ)

[ Top ]

method isMainModule [line 675]

void isMainModule( str $mod)

メインモジュールの判定



Tags:

access:  public


Parameters:

str   $mod   モジュール名

[ Top ]

method isMainModuleGroup [line 695]

boolean isMainModuleGroup( str $grp)

メインモジュールグループの判定



Tags:

access:  public


Parameters:

str   $grp   グループ名

[ Top ]

method param [line 849]

mixed param( [str $key = ''], [mixed $fallback = ''], [str $regex = ''])

パラメータ値を返却する



Tags:

return:  パラメータ値
access:  public


Parameters:

str   $key   パラメータのキー名
mixed   $fallback   存在しない時の代替
str   $regex   正規表現 (マッチした場合のみ返却したい時に利用。スカラー変数のみ対応)

[ Top ]

method rawHttpGet [line 872]

void rawHttpGet( [ $key = ''], [ $fallback = ''], [ $regex = ''])

未加工のゲットリクエスト($_GET)を返却する



Tags:

access:  public


Parameters:

   $key  
   $fallback  
   $regex  

[ Top ]

method rawHttpPost [line 895]

void rawHttpPost( [ $key = ''], [ $fallback = ''], [ $regex = ''])

未加工のポストリクエスト($_POST)を返却する



Tags:

access:  public


Parameters:

   $key  
   $fallback  
   $regex  

[ Top ]

method redirect [line 1097]

void redirect( str $url, [int $response_code = 302])

リダイレクトさせる



Tags:



Parameters:

str   $url   リダイレクト先URL or PATH(/からの絶対PATH)
int   $response_code   HTTPレスポンスコード (300台)

[ Top ]

method setError [line 819]

void setError( mixed $mixed, [bool $sanitize = self::SANITATION])

エラーをセットする



Tags:

access:  public


Parameters:

mixed   $mixed   エラーデータ
bool   $sanitize   サニタイズするか否か

[ Top ]

method setLogic [line 737]

void setLogic( str $logic)

ロジック名をセットする



Tags:

access:  public


Parameters:

str   $logic   ロジック名

[ Top ]

method setModule [line 1124]

void setModule( str $module)

モジュール名をセットする



Tags:

access:  protected


Parameters:

str   $module   モジュール名

[ Top ]

method setParam [line 1171]

void setParam( $param)

パラメータ値をセットする



Tags:

access:  protected


Parameters:

array   $param   パラメータ

[ Top ]

method setPrep [line 755]

void setPrep( str $prep)

プレップ名をセットする



Tags:

access:  public


Parameters:

str   $prep   プレップ名

[ Top ]

method setResponse [line 792]

void setResponse( $arr, [bool $sanitize = self::SANITATION])

レスポンスをセットする



Tags:

access:  public


Parameters:

array   $arr   レスポンスデータ
bool   $sanitize   サニタイズするか否か

[ Top ]

method setView [line 773]

void setView( str $view)

ビュー名をセットする



Tags:

access:  public


Parameters:

str   $view   ビュー名

[ Top ]


Class Constants

INSANITATION =  false

[line 65]


[ Top ]

MAX_MODULE =  99

[line 67]


[ Top ]

SANITATION =  true

[line 64]


[ Top ]

URI_NORMAL =  9

[line 72]


[ Top ]

URI_REWRITE_DYNAMIC =  2

[line 70]


[ Top ]

URI_REWRITE_HYBRID =  3

[line 71]


[ Top ]

URI_REWRITE_STATIC =  1

[line 69]


[ Top ]

VERSION =  '0.0.1'

[line 52]


[ Top ]



Documentation generated on Sat, 21 May 2011 18:34:07 +0900 by phpDocumentor 1.4.1