![]() |
IP.Board
3.3.0
|
Public Member Functions | |
| __construct (ipsRegistry $registry, $settings) | |
| asArray () | |
| fetchAllsItemDropDown ($selected_id=array(), $skip_id=array(), $defaultRow=array()) | |
| fetchDirectoriesDropDown ($selected_id, $skip_id=array(), $nodir_text='--Select A Directory--', $nodir_id=0) | |
| fetchItemByID ($id) | |
| fetchItemChildren ($root_id, $ids=array()) | |
| fetchItemParents ($root_id, $ids=array()) | |
| getData ($key) | |
| rebuildTiers () | |
Protected Member Functions | |
| _buildSkinTiers () | |
| _buildTiers () | |
| _fetchAllsItemDropDown ($root_id, $jump_string="", $depth_guide="", $selected_id, $skip_id=array()) | |
| _fetchDirectoriesDropDown ($root_id, $jump_string="", $depth_guide="", $selected_id, $skip_id=array()) | |
Protected Attributes | |
| $_customBuildMethod = '' | |
| $_itemByID = array() | |
| $_itemCache = array() | |
| $_sqlFolderFlag = '' | |
| $_sqlOrder = '' | |
| $_sqlParentID = '' | |
| $_sqlPrimaryID = '' | |
| $_sqlSelect = '*' | |
| $_sqlTable = '' | |
| $_sqlTitle = '' | |
| $_sqlWhere = '' | |
| $cache | |
| $caches | |
| $DB | |
| $lang | |
| $member | |
| $memberData | |
| $registry | |
| $request | |
| $settings | |
| __construct | ( | ipsRegistry $ | registry, |
| $ | settings | ||
| ) |
Method constructor
public
| object | Registry Object |
| array | Array of settings: [ 'sqlPrimaryID' (the SQL table field for the item ID) 'sqlParentID' (the SQL table field for the parent ID) 'sqlFolderFlag' (the SQL table field that tells if the row is a folder or not *Optional) 'sqlTitle' (the SQL table field for the item title) 'sqlOrder' (the SQL table field(s) to order on or by) 'sqlSelect' (the SQL table select fields (* by default)) 'sqlTable' (the SQL table name) 'sqlWhere' (Any additional 'where' information *Optional) ] |
| _buildSkinTiers | ( | ) | [protected] |
Custom method to build skin collections tier. Data is already in caches array, so no need to query it.
protected
| _buildTiers | ( | ) | [protected] |
Build the in-memory information tiers
protected
| _fetchAllsItemDropDown | ( | $ | root_id, |
| $ | jump_string = "", |
||
| $ | depth_guide = "", |
||
| $ | selected_id, | ||
| $ | skip_id = array() |
||
| ) | [protected] |
Return a HTML option list of all items: Internal version
protected
| int | Primary ID of entry to drill down from |
| string | Currently built option list |
| string | Current depth guage |
| int | Primary ID selected |
| array | Array of IDs to skip |
| _fetchDirectoriesDropDown | ( | $ | root_id, |
| $ | jump_string = "", |
||
| $ | depth_guide = "", |
||
| $ | selected_id, | ||
| $ | skip_id = array() |
||
| ) | [protected] |
Return a HTML option list of directories: Internal version
protected
| int | Primary ID of entry to drill down from |
| string | Currently built option list |
| string | Current depth guage |
| int | Primary ID selected |
| array | Array of IDs to skip |
| asArray | ( | ) |
Return all tier data as an array
public
| fetchAllsItemDropDown | ( | $ | selected_id = array(), |
| $ | skip_id = array(), |
||
| $ | defaultRow = array() |
||
| ) |
Return a HTML option list of all items: Internal version
public
| array | Array of selected IDs |
| array | Array of IDs to skip |
| array | [Optional: Default row array (value, name). Eg: array( '0', 'None' ) |
| fetchDirectoriesDropDown | ( | $ | selected_id, |
| $ | skip_id = array(), |
||
| $ | nodir_text = '--Select A Directory--', |
||
| $ | nodir_id = 0 |
||
| ) |
Return a HTML option list of directories
public
| int | Selected ID (shows that item by default in the drop down list) |
| array | Array of primary IDs to skip (miss from the listing |
| string | Text to use at the top of the listing (optional) |
| int | ID to use at the top of the listing |
| fetchItemByID | ( | $ | id | ) |
Return a data entry by primary ID
public
| int | ID of the data row to return |
| fetchItemChildren | ( | $ | root_id, |
| $ | ids = array() |
||
| ) |
Fetches all children of a particular ID
public
| int | ID of the data row to retreive children |
| array | Array of IDs discovered. Used when recursing. |
| fetchItemParents | ( | $ | root_id, |
| $ | ids = array() |
||
| ) |
Fetches all parents of a particular ID
public
| int | ID of the data row to retreive parents |
| array | Array of IDs discovered. Used when recursing. |
| getData | ( | $ | key | ) |
Returns data
public
| string |
| rebuildTiers | ( | ) |
Rebuild the in-memory information
public