Method |
Description |
|
__construct ( $id = false, $table = null, $ds = null ) : void |
コンストラクタ |
|
addField ( array $options ) : boolean |
テーブルにフィールドを追加する |
|
alphaNumeric ( $check ) : boolean |
英数チェック |
|
alphaNumericPlus ( array $check, array $options = [] ) : boolean |
英数チェックプラス |
|
bcUtileUrlencodeBlank ( array $check ) : boolean |
削除文字チェック |
|
beforeSave ( $options = [] ) : boolean |
beforeSave |
|
between ( mixed $check, integer $min, integer $max ) |
範囲を指定しての長さチェック |
|
cakeError ( string $method, array $messages = [] ) |
Used to report user friendly errors. |
|
changeSort ( string $id, integer $offset, array $conditions = [] ) : boolean |
並び順を変更する |
|
checkDate ( array $check ) : boolean |
日付の正当性チェック |
|
checkDateAfterThan ( $check, $target ) : boolean |
指定した日付よりも新しい日付かどうかチェックする |
|
checkDateRenge ( mixed $check, $begin, $end ) : boolean |
最大のバイト数チェック
- 対象となる値のサイズが、指定した最大値より短い場合、true を返す |
|
confirm ( array $check, mixed $fields ) : boolean |
2つのフィールド値を確認する |
|
convertEncodingByArray ( array $data, string $outenc, string $inenc ) : array |
配列の文字コードを変換する |
|
dataIter ( &$results, $callback ) |
|
|
deconstruct ( string $field, mixed $data ) : mixed |
Deconstructs a complex data type (array or object) into a single field value. |
|
delField ( array $options ) : boolean |
フィールドを削除する |
|
delete ( $id = null, $cascade = true ) |
|
|
deleteAll ( mixed $conditions, boolean $cascade = true, boolean $callbacks = false ) : boolean |
Deletes multiple model records based on a set of conditions. |
|
deleteModelCache ( ) : void |
Modelキャッシュを削除する |
|
dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed |
イベントを発火 |
|
duplicate ( array $check ) : boolean |
データの重複チェックを行う |
|
editField ( array $options ) : boolean |
フィールド構造を変更する |
|
emails ( array $check ) : boolean |
複数のEメールチェック(カンマ区切り) |
|
exists ( $id = null ) |
|
|
expects ( $arguments, boolean $reset = true ) : void |
指定したモデル以外のアソシエーションを除外する |
|
fileExt ( array $check, string $ext ) |
ファイルの拡張子チェック |
|
fileSize ( array $check, integer $size ) |
ファイルサイズチェック |
|
find ( string $type = 'first', array $query = [] ) : array | null |
Queries the datasource and returns a result set array. |
|
findExpanded ( ) : array |
Key Value 形式のテーブルよりデータを取得して
1レコードとしてデータを展開する |
|
getChildIdsList ( mixed $id ) : array |
子カテゴリのIDリストを取得する |
|
getControlSource ( $field ) : array |
コントロールソースを取得する |
|
getMax ( string $field, array $conditions = [] ) : integer |
指定フィールドのMAX値を取得する |
|
halfText ( array $check ) : boolean |
半角チェック |
|
initDb ( $pluginName = '', $options = [] ) : boolean |
データベースを初期化 |
|
isPublish ( boolean $status, string $publishBegin, string $publishEnd ) : boolean |
データが公開済みかどうかチェックする |
|
loadCsv ( $dbConfigName, $path, $options = [] ) : boolean |
CSVを読み込む |
|
loadSchema ( $dbConfigName, $path, $filterTable = '', $filterType = '', $excludePath = [], $dropField = true ) : boolean |
スキーマファイルを利用してデータベース構造を変更する |
|
maxByte ( mixed $check, integer $max ) : boolean |
最大のバイト数チェック
- 対象となる値のサイズが、指定した最大値より短い場合、true を返す |
|
maxLength ( mixed $check, integer $max ) |
最長の長さチェック
- 対象となる値の長さが、指定した最長値より短い場合、trueを返す |
|
minLength ( mixed $check, integer $min ) : boolean |
最短の長さチェック
- 対象となる値の長さが、指定した最短値より長い場合、trueを返す |
|
notFileEmpty ( array $check ) : boolean |
ファイルが送信されたかチェックするバリデーション |
|
notInList ( array $check, array $list ) : boolean |
リストチェック
対象となる値がリストに含まれる場合はエラー |
|
removeFromTreeRecursive ( integer $id ) : boolean |
ツリーより再帰的に削除する |
|
renameField ( array $options ) : boolean |
フィールド名を変更する |
|
replaceText ( $str ) : string |
機種依存文字の変換処理 |
|
save ( array $data = null, boolean $validate = true, array $fieldList = [] ) : mixed |
Saves model data to the database. By default, validation occurs before save. |
|
saveDbLog ( string $message ) : boolean |
データベースログを記録する |
|
saveKeyValue ( array $data ) : boolean |
Key Value 形式のテーブルにデータを保存する |
|
sortdown ( string $id, array $conditions ) : boolean |
一つ位置を下げる |
|
sortup ( string $id, array $conditions ) : boolean |
一つ位置を上げる |
|
tableExists ( string $tableName ) : boolean |
テーブルの存在チェックを行う |
|
updateAll ( array $fields, mixed $conditions = true ) : boolean |
Updates multiple model records based on a set of conditions. |
|