class ThreadedList extends ItemList (View source)

Properties

protected $total from ItemList
protected $itemsPerPage from ItemList
protected $currentPage from ItemList
protected $start from ItemList
protected $sortBy
protected $sortByDirection
protected $queryStringPagingVariable from ItemList
protected $queryStringSortVariable from ItemList
protected $queryStringSortDirectionVariable from ItemList
protected $enableStickySearchRequest from ItemList
protected $stickySearchRequestNameSpace from ItemList
protected $items from ItemList
protected $cnvID

Methods

enableStickySearchRequest($namespace = false)

No description

from ItemList
getQueryStringSortVariable()

No description

from ItemList
getStickySearchNameSpace($namespace = '')

No description

from ItemList
resetSearchRequest($namespace = '')

No description

from ItemList
addToSearchRequest($key, $value)

No description

from ItemList
getSearchRequest()

No description

from ItemList
setItemsPerPage($num)

No description

from ItemList
getItemsPerPage()

No description

from ItemList
setItems($items)

No description

from ItemList
from ItemList
setNameSpace($ns)

No description

from ItemList
getTotal()

Returns the total number of items found by this list.

getPage($page = false)

Returns an array of object by "page".

from ItemList
get($num, $offset)

No description

setCurrentPage($page = false)

No description

from ItemList
displaySummary($right_content = '')

Displays summary text about a list.

from ItemList
getSearchResultsClass($field)

No description

from ItemList
getSortByURL($column, $dir = 'asc', $baseURL = false, $additionalVars = array())

No description

from ItemList
isActiveSortColumn($column)

No description

from ItemList
getActiveSortColumn()

No description

from ItemList
getActiveSortDirection()

No description

from ItemList
requiresPaging()

No description

from ItemList
getPagination($url = false, $additionalVars = array())

No description

from ItemList
displayPagingV2($script = false, $return = false, $additionalVars = array())

Gets paging that works in our new format

from ItemList
displayPaging($script = false, $return = false, $additionalVars = array())

Gets standard HTML to display paging

from ItemList
getSummary()

Returns an object with properties useful for paging.

from ItemList
sortBy(string $column, string $direction = 'asc')

Sets column to sort by. Only supports a single column; for multiple columns us sortByMultiple().

from ItemList
getSortBy()

No description

from ItemList
getSortByDirection()

No description

from ItemList
sortByMultiple()

Sets up a multiple columns to search by. Each argument is taken "as-is" (including asc or desc) and concatenated with commas Note that this is overrides any previous sortByMultiple() call, and all sortBy() calls. Alternatively, you can pass a single array with multiple columns to sort by as its values.

from ItemList
__construct(Conversation $cnv)

No description

sortByDateDescending()

No description

sortByDateAscending()

No description

sortByRating()

No description

sortThreadedArrays($messages)

No description

flattenMessages($messages)

No description

getMessages($cnvMessageParentID)

No description

int
sortItems(ConversationMessage $a, ConversationMessage $b)

No description

Details

enableStickySearchRequest($namespace = false)

Parameters

$namespace

getQueryStringSortVariable()

getQueryStringSortDirectionVariable()

protected getStickySearchNameSpace($namespace = '')

Parameters

$namespace

resetSearchRequest($namespace = '')

Parameters

$namespace

addToSearchRequest($key, $value)

Parameters

$key
$value

getSearchRequest()

setItemsPerPage($num)

Parameters

$num

getItemsPerPage()

setItems($items)

Parameters

$items

protected loadQueryStringPagingVariable()

setNameSpace($ns)

Parameters

$ns

getTotal()

Returns the total number of items found by this list.

getPage($page = false)

Returns an array of object by "page".

Parameters

$page

get($num, $offset)

Parameters

$num
$offset

protected setCurrentPage($page = false)

Parameters

$page

displaySummary($right_content = '')

Displays summary text about a list.

Parameters

$right_content

getSearchResultsClass($field)

Parameters

$field

getSortByURL($column, $dir = 'asc', $baseURL = false, $additionalVars = array())

Parameters

$column
$dir
$baseURL
$additionalVars

isActiveSortColumn($column)

Parameters

$column

getActiveSortColumn()

getActiveSortDirection()

requiresPaging()

getPagination($url = false, $additionalVars = array())

Parameters

$url
$additionalVars

displayPagingV2($script = false, $return = false, $additionalVars = array())

Gets paging that works in our new format

Parameters

$script
$return
$additionalVars

displayPaging($script = false, $return = false, $additionalVars = array())

Gets standard HTML to display paging

Parameters

$script
$return
$additionalVars

getSummary()

Returns an object with properties useful for paging.

sortBy(string $column, string $direction = 'asc')

Sets column to sort by. Only supports a single column; for multiple columns us sortByMultiple().

Parameters

string $column Column name to sort
string $direction Sorting direction. Use 'asc' or 'desc'

getSortBy()

getSortByDirection()

sortByMultiple()

Sets up a multiple columns to search by. Each argument is taken "as-is" (including asc or desc) and concatenated with commas Note that this is overrides any previous sortByMultiple() call, and all sortBy() calls. Alternatively, you can pass a single array with multiple columns to sort by as its values.

e.g. $list->sortByMultiple('columna desc', 'columnb asc'); or $list->sortByMultiple(array('columna desc', 'columnb asc'));.

__construct(Conversation $cnv)

Parameters

Conversation $cnv

sortByDateDescending()

sortByDateAscending()

sortByRating()

protected sortThreadedArrays($messages)

Parameters

$messages

protected flattenMessages($messages)

Parameters

$messages

protected getMessages($cnvMessageParentID)

Parameters

$cnvMessageParentID

protected int sortItems(ConversationMessage $a, ConversationMessage $b)

Parameters

ConversationMessage $a
ConversationMessage $b

Return Value

int