\ACMS_Filter

ACMS_Filter

SQLヘルパの各種処理をラップしたメソッド群です メソッドの外で,条件対象のテーブルが選択されている必要があります 例外で,_field, _keywordはメソッド内でテーブルを自動で選択します

Summary

Methods
Properties
Constants
blogTree()
blogStatus()
blogField()
blogDisclosureSecretStatus()
blogOrder()
blogKeyword()
userStatus()
userOrder()
userKeyword()
userField()
categoryStatus()
categoryTreeGlobal()
categoryField()
categoryTree()
categoryOrder()
categoryKeyword()
entryStatus()
entryValidSpan()
entrySession()
entrySpan()
entryTag()
entryKeyword()
entryField()
entryOrder()
tagOrder()
mediaOrder()
fieldList()
formbuildOrder()
formbuildSession()
formbuildSpan()
formbuildField()
crmMailField()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_field_where()
_field()
_field_index()
_keyword()
No private properties found
N/A

Methods

blogTree()

blogTree(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, integer  $bid, string  $axis = 'self', null  $scope = null) : void

ブログの階層構造を,axisを指定して絞り込みます

[example] self : 指定されたbidのブログ descendant : 指定されたbidの子孫ブログ ancestor : 指定されたbidの先祖ブログ

ACMS_Filter::blogTree($SQL, $bid, 'self-or-descendant');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
integer $bid
string $axis

self|descendant|ancestor

null $scope

blogStatus()

blogStatus(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scope = null) : void

ブログの公開状態とアクセス中の権限に応じて,表示条件を振り分けます

ACMS_Filter::blogStatus($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scope

blogField()

blogField(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

ブログをfieldテーブルから,指定されたフィールドで検索します

ACMS_Filter::blogField($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

blogDisclosureSecretStatus()

blogDisclosureSecretStatus(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scope = null) : void

ブログの公開状態とアクセス中の権限に応じて,表示条件を振り分けます secretモードを表示対象にします

ACMS_Filter::blogDisclosureSecretStatus($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scope

blogOrder()

blogOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $scp = null) : void

ブログの特定フィールドを指定して,昇順または降順で並び替えます

[example] id-desc : ID降順 code-asc : コード昇順

ACMS_Filter::blogOrder($SQL, 'id-desc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $scp

blogKeyword()

blogKeyword(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $keyword) : void

ブログをfulltextテーブルから,指定されたキーワードで全文検索します

ACMS_Filter::blogKeyword($SQL, 'first second third keywords')

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $keyword

userStatus()

userStatus(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scope = null) : void

ユーザーの公開状態とアクセス中の権限に応じて,表示条件を振り分けます

ACMS_Filter::userStatus($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scope

userOrder()

userOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $scp = null) : void

ユーザーの特定フィールドを指定して,昇順または降順で並び替えます

[example] id-desc : ID降順 code-asc : コード昇順

ACMS_Filter::userOrder($SQL, 'code-desc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $scp

userKeyword()

userKeyword(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $keyword) : void

ユーザーをfulltextテーブルから,指定されたキーワードで全文検索します

ACMS_Filter::userKeyword($SQL, 'first second third keywords')

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $keyword

userField()

userField(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

ユーザーをfieldテーブルから,指定されたフィールドで検索します

ACMS_Filter::userField($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

categoryStatus()

categoryStatus(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scope = null) : void

カテゴリーの公開状態とアクセス中の権限に応じて,表示条件を振り分けます

ACMS_Filter::categoryStatus($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scope

categoryTreeGlobal()

categoryTreeGlobal(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, integer  $bid, boolean  $self = true, null  $categoryScope = null, null  $blogScope = null) : void

カテゴリーの階層構造で,指定されたbid以下すべてを対象とします

ACMS_Filter::categoryTreeGlobal($SQL, $bid);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
integer $bid
boolean $self
null $categoryScope
null $blogScope

categoryField()

categoryField(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

カテゴリーをfieldテーブルから,指定されたフィールドで検索します

ACMS_Filter::categoryField($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

categoryTree()

categoryTree(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, integer  $cid, string  $axis = 'self', null  $scope = null) : void

カテゴリーの階層構造を,axisを指定して絞り込みます

[example] self : 指定されたbidのカテゴリー descendant : 指定されたbidの子孫カテゴリー ancestor : 指定されたbidの先祖カテゴリー

ACMS_Filter::categoryTree($SQL, $cid, 'descendant');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
integer $cid
string $axis
null $scope

categoryOrder()

categoryOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $scope = null) : void

カテゴリーの特定フィールドを指定して,昇順または降順で並び替えます

[example] id-desc : ID降順 code-asc : コード昇順

ACMS_Filter::categoryOrder($SQL, 'code-desc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $scope

categoryKeyword()

categoryKeyword(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $keyword) : void

カテゴリーをfulltextテーブルから,指定されたキーワードで全文検索します

ACMS_Filter::categoryKeyword($SQL, 'first second third keywords')

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $keyword

entryStatus()

entryStatus(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scope = null) : void

エントリーの公開状態とアクセス中の権限に応じて,表示条件を振り分けます

ACMS_Filter::entryStatus($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scope

entryValidSpan()

entryValidSpan(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $datetime, null  $scope = null) : void

指定された日時が,公開期間に含まれているエントリーを絞り込みます

ACMS_Filter::entryValidSpan($SQL, '2011-04-21 13:00:00');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $datetime

'1001-01-01 00:00:00'

null $scope

entrySession()

entrySession(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scp = null,   $private = false) : void

現在の日時が,公開期間に含まれていて,アクセス中の権限で表示可能なエントリーを絞り込みます

ACMS_Filter::entrySession($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scp
$private

entrySpan()

entrySpan(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $start, string  $end, null  $scope = null) : void

開始〜終了の指定による期間の該当する日付のエントリーを絞り込みます

ACMS_Filter::entrySpan($SQL, '2010-01-01', '2010-12-31');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $start

'1001-01-01 00:00:00'

string $end

'9999-12-31 23:59:59'

null $scope

entryTag()

entryTag(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, array  $tags, null  $scope = null) : void

エントリーをタグで絞り込みます

ACMS_Filter::entryTag($SQL, $tags);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
array $tags
null $scope

entryKeyword()

entryKeyword(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $keyword) : void

エントリーfulltextテーブルから,指定されたキーワードで全文検索します

ACMS_Filter::entryKeyword($SQL, 'first second third keywords');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $keyword

entryField()

entryField(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

エントリーをfieldテーブルから,指定されたフィールドで検索します

ACMS_Filter::entryField($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

entryOrder()

entryOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL,   $order, null  $uid = null, null  $cid = null, boolean|integer  $secondary_filed_sort = false, boolean|string  $field_name = false) : string

エントリーの特定フィールドを指定して,昇順または降順で並び替えます

[example] id-desc : ID降順 code-asc : コード昇順

ACMS_Filter::entryOrder($SQL, 'code-asc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
$order
null $uid
null $cid
boolean|integer $secondary_filed_sort
boolean|string $field_name

Returns

string

tagOrder()

tagOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $scope = null) : void

タグの特定フィールドを指定して,昇順または降順で並び替えます

[example] name-desc : 名前降順

ACMS_Filter::tagOrder($SQL, 'name-desc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $scope

mediaOrder()

mediaOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $scope = null) : void

メディアの特定フィールドを指定して,昇順または降順で並び替えます

[example] name-desc : 名前降順

ACMS_Filter::mediaOrder($SQL, 'name-desc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $scope

fieldList()

fieldList(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

fieldテーブルを,指定されたフィールドで検索します

ACMS_Filter::fieldList($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

formbuildOrder()

formbuildOrder(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $order, null  $uid = null, null  $cid = null) : void

エントリーの特定フィールドを指定して,昇順または降順で並び替えます

[example] id-desc : ID降順 code-asc : コード昇順

ACMS_Filter::formbuildOrder($SQL, 'code-asc');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $order

asc|desc

null $uid
null $cid

formbuildSession()

formbuildSession(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, null  $scp = null) : void

現在の日時が,公開期間に含まれていて,アクセス中の権限で表示可能なエントリーを絞り込みます

ACMS_Filter::formbuildSession($SQL);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
null $scp

formbuildSpan()

formbuildSpan(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $start, string  $end, null  $scope = null) : void

開始〜終了の指定による期間の該当する日付のエントリーを絞り込みます

ACMS_Filter::formbuildSpan($SQL, '2010-01-01', '2010-12-31');

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $start

'1001-01-01 00:00:00'

string $end

'9999-12-31 23:59:59'

null $scope

formbuildField()

formbuildField(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field) : void

エントリーをfieldテーブルから,指定されたフィールドで検索します

ACMS_Filter::formbuildField($SQL, $Field);

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field

crmMailField()

crmMailField(  $SQL,   $Field) 

Parameters

$SQL
$Field

_field_where()

_field_where(  $Where,   $Field,   $fd,   $aryOperator,   $emptyAry) 

Parameters

$Where
$Field
$fd
$aryOperator
$emptyAry

_field()

_field(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field, string  $fieldKey = null, string  $tableKey = null) : void

field

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field
string $fieldKey
string $tableKey

_field_index()

_field_index(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, \Field  $Field, string  $fieldKey = null, string  $tableKey = null) : void

use index field search

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
\Field $Field
string $fieldKey
string $tableKey

_keyword()

_keyword(\SQL_Select|\SQL_Update|\SQL_Delete  $SQL, string  $keyword, string  $fulltextKey, string  $tableKey) : void

_keyword

Parameters

\SQL_Select|\SQL_Update|\SQL_Delete $SQL
string $keyword
string $fulltextKey
string $tableKey