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

Public Member Functions

 getObjectGenre ()
 getObjectIdField ()
 queryFromStructure (KWebQueryBuilder $qb, $columns=false, $alias=true)
 Adds k_structure table to the query with specified columns and alias.
 queryUseStructure (KWebQueryBuilder $qb)
 Returns k_structure alias.
 queryWhereAttrId (KWebQueryBuilder $qb, $attrId)
 Limits result to items with specific translations.
 buildReadQuery ()
 applyQueryOptions (SqlQueryBuilder $query)
 Applies all query specific options on the query.
 readObjects ()
 readObjectsFromQuery ($query=null)

Static Public Member Functions

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

Data Fields

const ALIAS_STRUCTURE = "s"

Member Function Documentation

KWebAdapter_Link::applyQueryOptions ( SqlQueryBuilder query)

Applies all query specific options on the query.

Reimplemented from KWebAdapter_ObjectBase_Query.

KWebAdapter_Link::buildReadQuery ( )
Returns:
KWebQueryBuilder

Reimplemented from KWebAdapter_ObjectBase_Query.

KWebAdapter_Link::getObjectGenre ( )

Reimplemented from KWebAdapter_ObjectBase.

KWebAdapter_Link::getObjectIdField ( )

Reimplemented from KWebAdapter_ObjectBase.

static KWebAdapter_Link::inst ( ) [static]
static KWebAdapter_Link::linkFactory ( options = array()) [static]
KWebAdapter_Link::queryFromStructure ( KWebQueryBuilder qb,
columns = false,
alias = true 
)

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

Knows how to join with: k_item

Parameters:
$columns- TRUE becomes 'link_id', default none
$alias- default 's'
Returns:
KWebAdapter_Item
KWebAdapter_Link::queryUseStructure ( KWebQueryBuilder qb)

Returns k_structure alias.

Joins the table if needed

Returns:
string
KWebAdapter_Link::queryWhereAttrId ( KWebQueryBuilder qb,
attrId 
)

Limits result to items with specific translations.

Parameters:
$needLanguageFalse: All items, True: Only items with translation in current language , Language id: Only items with this language translation, NULL: default behaviour
Returns:
KWebAdapter_Item
KWebAdapter_Link::readObjects ( )
KWebAdapter_Link::readObjectsFromQuery ( query = null)

Field Documentation


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