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

Class: BEAR_Util

Source Location: /BEAR/Util.php

Class Overview


ユーティリティ


Author(s):

Version:

  • SVN: Release: @package_version@ $Id: Util.php 2563 2011-06-19 16:11:36Z koriyama@bear-project.net $

Copyright:

  • 2008-2011 Akihito Koriyama All rights reserved.

Methods



Class Details

[line 33]
ユーティリティ

ユーティリティ

 デバックモードの時のみ使用するクラス群です。
 フレームワークが使用しています。




Tags:

author:  Akihito Koriyama <koriyama@bear-project.net>
version:  SVN: Release: @package_version@ $Id: Util.php 2563 2011-06-19 16:11:36Z koriyama@bear-project.net $
copyright:  2008-2011 Akihito Koriyama All rights reserved.
link:  http://www.bear-project.net/
license:  BSD


[ Top ]


Class Methods


static method clearAllCache [line 79]

static void clearAllCache( [bool $showMessage = false])

全てのキャッシュをクリア

全てのキャッシュをクリア




Tags:

access:  public


Parameters:

bool   $showMessage   メッセージ表示?

[ Top ]

static method getFilesList [line 43]

static array getFilesList( string $path)

再帰でファイルリストを得る

再帰でファイルリストを得る




Tags:

access:  public


Parameters:

string   $path   ファイルまたはディレクトリパス

[ Top ]

static method getObjectVarsRecursive [line 189]

static string getObjectVarsRecursive( mixed $data)

get_object_varsの再帰版

get_object_varsの再帰版




Tags:

access:  public


Parameters:

mixed   $data   入力データ

[ Top ]

static method printStatus [line 99]

static void printStatus( string $msg, [string $color = '#dddddd"'])

ステータスを表示

ステータスを表示




Tags:

access:  public


Parameters:

string   $msg   メッセージ
string   $color   カラー

[ Top ]

static method required [line 132]

static void required( $required, array $values, [string $msg = ''], [int $code = BEAR::CODE_BAD_REQUEST])

必須項目アサーション

必須項目アサーション 連想配列に指定のキー配列が全て含まれてるか検査し、問題があれば指定したコードの例外を投げます。 <code // $valuesには'id'と'name'がなければいけない BEAR_Util::required(array('id', 'name'), $values); </code>




Tags:

throws:  BEAR_Exception 必須項目が足りない場合の例外
access:  public


Parameters:

array   $required   必須項目
array   $values   入力項目
string   $msg   メッセージ
int   $code   コード

[ Top ]

static method unlinkRecursive [line 217]

static void unlinkRecursive( string $dir, [bool $deleteRootToo = false])

ファイルを再帰的に消去

ファイルを再帰的に消去 指定ディレクトリ下でファイルを再帰で消去します




Tags:

access:  public


Parameters:

string   $dir   ディレクトリパス
bool   $deleteRootToo   指定ディレクトリも消去するか

[ Top ]

static method unserialize [line 176]

static string unserialize( mixed $data)

アンシリアライズ

アンシリアライズ




Tags:

deprecated:  環境で動作が不安定
access:  public


Parameters:

mixed   $data   アンシリアライズするデータ

[ Top ]


Documentation generated on Sat, 30 Jul 2011 00:12:05 +0900 by phpDocumentor 1.4.3