KWeb  6.4
KWebAdapter_Comment Class Reference
Inheritance diagram for KWebAdapter_Comment:
KWebAdapter_ObjectBase_Query KWebAdapter_ObjectBase KWebAdapter KWebAdapter_IReader KWebAdapter_IWriter

Public Member Functions

 getObjectGenre ()
 getObjectIdField ()
 queryBuilder ($queryType=true, $db=false)
 queryFromComment (KWebQueryBuilder $qb, $columns=false, $alias=true)
 Adds k_comment table to the query with specified columns and alias.
 queryUseComment (KWebQueryBuilder $qb)
 Returns k_item alias.
 queryWhereLanguageEquals (KWebQueryBuilder $qb, $language)
 Limits result to rows in language.
 queryWhereStatusEquals (KWebQueryBuilder $qb, $status)
 Limits result to rows with specified status.
 queryWhereIsType (KWebQueryBuilder $qb, $type)
 Limits result to rows with specified comment type.
 queryWhereHasParent (KWebQueryBuilder $qb, $parentUid)
 queryOrder (KWebQueryBuilder $qb, $order)
 Item order.
 buildReadQuery ()
 applyQueryOptions (SqlQueryBuilder $qb)
 Applies all query specific options on the query.

Static Public Member Functions

static commentFactory ($options=array())
static inst ()

Data Fields

const ALIAS_COMMENT = 'comment'

Member Function Documentation

KWebAdapter_Comment::applyQueryOptions ( SqlQueryBuilder qb)

Applies all query specific options on the query.

Reimplemented from KWebAdapter_ObjectBase_Query.

KWebAdapter_Comment::buildReadQuery ( )
static KWebAdapter_Comment::commentFactory ( options = array()) [static]
KWebAdapter_Comment::getObjectGenre ( )

Reimplemented from KWebAdapter_ObjectBase.

KWebAdapter_Comment::getObjectIdField ( )

Reimplemented from KWebAdapter_ObjectBase.

static KWebAdapter_Comment::inst ( ) [static]
KWebAdapter_Comment::queryBuilder ( queryType = true,
db = false 
)
KWebAdapter_Comment::queryFromComment ( KWebQueryBuilder qb,
columns = false,
alias = true 
)

Adds k_comment table to the query with specified columns and alias.

Knows how to join with:

Parameters:
$columns- TRUE becomes 'comment_id', default none
$alias- default 'i'
Returns:
KWebAdapter_Item
KWebAdapter_Comment::queryOrder ( KWebQueryBuilder qb,
order 
)

Item order.

Returns:
KWebAdapter_Item
KWebAdapter_Comment::queryUseComment ( KWebQueryBuilder qb)

Returns k_item alias.

Joins the table if needed

Returns:
string
KWebAdapter_Comment::queryWhereHasParent ( KWebQueryBuilder qb,
parentUid 
)
KWebAdapter_Comment::queryWhereIsType ( KWebQueryBuilder qb,
type 
)

Limits result to rows with specified comment type.

Returns:
KWebAdapter_Comment
KWebAdapter_Comment::queryWhereLanguageEquals ( KWebQueryBuilder qb,
language 
)

Limits result to rows in language.

Returns:
KWebAdapter_Comment
KWebAdapter_Comment::queryWhereStatusEquals ( KWebQueryBuilder qb,
status 
)

Limits result to rows with specified status.

Returns:
KWebAdapter_Comment

Field Documentation


The documentation for this class was generated from the following file: