MORE_THAN_DAYS
MORE_THAN_DAYS
more_than_days定数 ○日以上前(○日以上ログインしていない)
UserSearch Model
Add your application-wide methods in the class below, your models will inherit them.
__construct(boolean|integer|string|array $id = false, string $table = null, string $ds = null)
Constructor. Binds the model's database table to the object.
boolean|integer|string|array | $id | Set this ID for this model on startup, can also be an array of options, see above. |
string | $table | Name of database table to use. |
string | $ds | DataSource connection name. |
create(boolean|array $data = array(), boolean $filterKey = false) : array
NetCommonsで使用する共通の値がセットされた結果を返します。<br> CakePHPのSchemaは、not null指定されたカラムのdefaultがnullになっているため、<br> ''(長さ0の文字列)に書き換えています。<br> https://github.com/NetCommons3/NetCommons3/issues/7
'room_id' => Current::read('Room.id'),
'language_id' => Current::read('Language.id'),
'block_id' => Current::read('Block.id'),
'block_key' => Current::read('Block.key'),
'frame_id' => Current::read('Frame.id'),
'frame_key' => Current::read('Frame.key'),
'plugin_key' => Inflector::underscore($this->plugin),
boolean|array | $data | Optional data array to assign to the model after it is created. If null or false, schema data defaults are not merged. |
boolean | $filterKey | If true, overwrites any primary key input with an empty value |
The current Model::data; after merging $data and/or defaults from database
createAll(boolean|array $data = array(), boolean $filterKey = false) : array
Initializes the model for writing a new record, loading the default values for those fields that are not defined in $data, and clearing previous validation errors.
Especially helpful for saving data in loops.
boolean|array | $data | Optional data array to assign to the model after it is created. If null or false, schema data defaults are not merged. |
boolean | $filterKey | If true, overwrites any primary key input with an empty value |
The current Model::data; after merging $data and/or defaults from database
getSearchJoinTables(array $joinModels, array $conditions = array(), array $fields = array(), string $join = '') : array
JOINテーブルを取得
array | $joinModels | JOINモデルリスト |
array | $conditions | 条件(Conditions)リスト |
array | $fields | 取得カラムリスト |
string | $join | JOIN種別(INNER or LEFT) |
Findで使用するJOIN配列
paginate(array $conditions, array $fields, array $order, integer $limit, integer $page = 1, integer $recursive = null, array $extra = array()) : array
paginate メソッド
array | $conditions | 条件配列 |
array | $fields | フィールド配列 |
array | $order | ソート配列 |
integer | $limit | 取得件数 |
integer | $page | ページ番号 |
integer | $recursive | findのrecursive |
array | $extra | findのオプション |
検索結果
__getSearchJoinTablesForRoom(array $joinModels, array $conditions, array $fields, string $join) : array
Roomを条件にする場合のJOINテーブルを取得
array | $joinModels | JOINモデルリスト |
array | $conditions | 条件配列 |
array | $fields | 取得カラムリスト |
string | $join | JOIN種別(INNER or LEFT) |
Findで使用するJOIN配列
__paginateByRoomRoleKey(array $conditions, array $fields, array $joins, array $order, integer $limit, integer $page, integer $recursive, string $group, array $extra) : array
paginate メソッド
array | $conditions | 条件配列 |
array | $fields | フィールド配列 |
array | $joins | JOINテーブル配列 |
array | $order | ソート配列 |
integer | $limit | 取得件数 |
integer | $page | ページ番号 |
integer | $recursive | findのrecursive |
string | $group | GROUP BY |
array | $extra | findのオプション |
検索結果
__paginateCountByRoomRoleKey(array $conditions, array $joins, integer $recursive, string $group, array $extra) : array
paginateCount メソッド
array | $conditions | 条件配列 |
array | $joins | JOINテーブル配列 |
integer | $recursive | findのrecursive |
string | $group | GROUP BY |
array | $extra | findのオプション |
検索結果の件数