COM getPermSQL
提供: GeeklogJpWiki
lib-common.php>COM getPerSQL
説明
string COM_getPermSQL ([string $type = 'WHERE'], [int $u_id = 0], [int $access = 2], [string $table = ''])
パーミッションチェックのためのSQL表現を返す。リクエストされたアイテムに使用可能なSQL表現をGeeklogパーミッション標準セットとともに返す。
パラメータ
- $type
- part of the SQL expr. e.g. 'WHERE', 'AND'
- $u_id
- user id or 0 = current user
- $access
- access to check for (2=read, 3=r&write)
- $table
- table name if ambiguous (e.g. in JOINs)
返り値
SQL表現文字列を返す (空の場合もあり)