vB_Api_Search
extends vB_Api
in package
vB_Api_Search
Tags
Table of Contents
- FILTER_CHANNELAGE = 'channelAge'
- FILTER_DATEALL = 'all'
- FILTER_FOLLOW = 'follow'
- FILTER_FOLLOWING_ALL = 'followAll'
- FILTER_FOLLOWING_BOTH = 'followBoth'
- FILTER_FOLLOWING_CHANNEL = 'followChannel'
- FILTER_FOLLOWING_CONTENT = 'followContent'
- FILTER_FOLLOWING_USERS = 'followMembers'
- FILTER_LASTDAY = 'lastDay'
- FILTER_LASTMONTH = 'lastMonth'
- FILTER_LASTVISIT = 'lastVisit'
- FILTER_LASTWEEK = 'lastWeek'
- FILTER_LASTYEAR = 'lastYear'
- FILTER_MARKED_READ = 'read'
- FILTER_MARKED_UNREAD = 'unread'
- FILTER_SHOW_EVENT = 'vBForum_Event'
- FILTER_SHOW_GALLERY = 'vBForum_Gallery'
- FILTER_SHOW_LINK = 'vBForum_Link'
- FILTER_SHOW_POLL = 'vBForum_Poll'
- FILTER_SHOW_TEXT = 'vBForum_Text'
- FILTER_SHOW_VIDEO = 'vBForum_Video'
- FILTER_STARTER_ONLY = 'starter_only'
- FILTER_TOPICAGE = 'topicAge'
- FILTER_VIEW_ACTIVITY = 'activity'
- FILTER_VIEW_CONVERSATION_STREAM = 'conversation_stream'
- FILTER_VIEW_CONVERSATION_THREAD = 'conversation_thread'
- FILTER_VIEW_CONVERSATION_THREAD_SEARCH = 'conversation_thread_search'
- FILTER_VIEW_TOPIC = 'topic'
- IGNORE_CACHE = alse
- SEARCH_TYPE_SYSTEM = 0
- SEARCH_TYPE_USER = 1
- $cache_ttl_sec : mixed
- $channelCache : mixed
- $controller : string
- API Controller
- $criteria : mixed
- $db : vB_Database
- Database object.
- $disabled : bool
- Indicates whether the API was disabled
- $disableFalseReturnOnly : array<string|int, mixed>
- Contains white listed methods which return a false response when API is disabled in special scenarios like forum closed, password expiry, ip ban and others.
- $disableWhiteList : array<string|int, mixed>
- Contains white listed methods which act as normal when API is disabled no matter of special scenarios like forum closed, password expiry, ip ban and others.
- $search_json : mixed
- $showFilterList : mixed
- $allbadwords : mixed
- $badwords : mixed
- $goodwords : mixed
- $instances : mixed
- $instancesRaw : array<string|int, mixed>
- We want API subclasses to access the instances only through getters
- $vb4_input_mappings : mixed
- $wrappers : mixed
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- callNamed() : The
- Call the given api function by name with a named arguments list.
- checkApiState() : mixed
- This method checks whether the API method is enabled.
- clearCache() : mixed
- Clears all previously loaded API objects.
- get_all_bad_words() : mixed
- get_bad_words() : mixed
- get_good_words() : mixed
- getApiClassName() : mixed
- getCacheTTL() : int
- Returns the cache ttl in seconds
- getChannels() : array<string|int, mixed>
- Returns the Channel structure
- getChannelTopics() : array<string|int, mixed>
- Very similar to getInitialResults(), but meant for use by channeldisplay template & activity/get requests.
- getForumChannels() : mixed
- getInfo() : mixed
- getInitialNodes() : array<string|int, mixed>
- Search for nodeids and returns the resultid as well as the page value
- getInitialResults() : array<string|int, mixed>
- Search for nodes and returns the resultid as well as the page value
- getMoreNodes() : array<string|int, mixed>
- Get the node_ids from a search resultId
- getMoreResults() : array<string|int, mixed>
- Get the nodes from a search resultId
- getPageNumber() : int
- Get the page number where the specified node is at on the node list.
- getSearchableContentTypes() : mixed
- getSearchResult() : int
- Search for nodes
- instance() : vB_Api
- Returns an instance of the API object which translates exceptions to an array Use this method for API clients.
- instanceInternal() : vB_Api
- Returns an instance of the API object which doesn't handle exceptions This should only be used in other API objects, not for clients of the API
- is_index_word() : mixed
- map_vb4_input_to_vb5() : string
- Returns vb5 api method name.
- map_vb5_errors_to_vb4() : mixed
- Alters the error array in any way necessary to interface correctly with vb4.
- map_vb5_output_to_vb4() : mixed
- Alters the output array in any way necessary to interface correctly with vb4.
- __construct() : mixed
- checkHasAdminPermission() : none
- Determines if the calling user has the given admin permission, and if not throws an exception
- checkHasPermission() : none
- Determines if the calling user has the given bitfield permission, and if not, throws a 'no_permission' exception.
- checkIsLoggedIn() : mixed
- Determines if the calling user has the given admin permission, and if not throws an exception
- getApiClass() : mixed
- getApiClassNameInternal() : mixed
- getChannelFromTree() : mixed
- This takes the channel tree produced by getChannels, finds the specified channel recursively, then returns that channel's sub tree. Used internally by getChannels.
- getSearchResultsCriteria() : int
- Search for nodes
- hasAdminPermission() : bool
- Determines if the calling user has the given admin permission
- inDebugMode() : mixed
- isDisableFalseReturnOnly() : bool
- Checks if method returns false response only when API is disabled.
- isWhiteListed() : bool
- Checks if method is white listed when API is disabled.
- setController() : mixed
- Set controller
- cms_vb4_to_vb5_method_mapping() : mixed
- computeDateLine() : mixed
- default_vb4_to_vb5_method_mapping() : mixed
- doFullCountQueryForTopics() : mixed
- flattenTree() : mixed
- getChannelTopicCount() : mixed
- getIgnoredUsersList() : mixed
- hasAdminPermissionInternal() : mixed
- Internal function to power the previous cover functions
- json2criteria() : mixed
- remove_nulls() : mixed
- wrapLoggerIfNeeded() : mixed
- Wrap the api object with the log wrapper class if needed.
Constants
FILTER_CHANNELAGE
public
mixed
FILTER_CHANNELAGE
= 'channelAge'
FILTER_DATEALL
public
mixed
FILTER_DATEALL
= 'all'
FILTER_FOLLOW
public
mixed
FILTER_FOLLOW
= 'follow'
FILTER_FOLLOWING_ALL
public
mixed
FILTER_FOLLOWING_ALL
= 'followAll'
FILTER_FOLLOWING_BOTH
public
mixed
FILTER_FOLLOWING_BOTH
= 'followBoth'
FILTER_FOLLOWING_CHANNEL
public
mixed
FILTER_FOLLOWING_CHANNEL
= 'followChannel'
FILTER_FOLLOWING_CONTENT
public
mixed
FILTER_FOLLOWING_CONTENT
= 'followContent'
FILTER_FOLLOWING_USERS
public
mixed
FILTER_FOLLOWING_USERS
= 'followMembers'
FILTER_LASTDAY
public
mixed
FILTER_LASTDAY
= 'lastDay'
FILTER_LASTMONTH
public
mixed
FILTER_LASTMONTH
= 'lastMonth'
FILTER_LASTVISIT
public
mixed
FILTER_LASTVISIT
= 'lastVisit'
FILTER_LASTWEEK
public
mixed
FILTER_LASTWEEK
= 'lastWeek'
FILTER_LASTYEAR
public
mixed
FILTER_LASTYEAR
= 'lastYear'
FILTER_MARKED_READ
public
mixed
FILTER_MARKED_READ
= 'read'
FILTER_MARKED_UNREAD
public
mixed
FILTER_MARKED_UNREAD
= 'unread'
FILTER_SHOW_EVENT
public
mixed
FILTER_SHOW_EVENT
= 'vBForum_Event'
FILTER_SHOW_GALLERY
public
mixed
FILTER_SHOW_GALLERY
= 'vBForum_Gallery'
FILTER_SHOW_LINK
public
mixed
FILTER_SHOW_LINK
= 'vBForum_Link'
FILTER_SHOW_POLL
public
mixed
FILTER_SHOW_POLL
= 'vBForum_Poll'
FILTER_SHOW_TEXT
public
mixed
FILTER_SHOW_TEXT
= 'vBForum_Text'
FILTER_SHOW_VIDEO
public
mixed
FILTER_SHOW_VIDEO
= 'vBForum_Video'
FILTER_STARTER_ONLY
public
mixed
FILTER_STARTER_ONLY
= 'starter_only'
FILTER_TOPICAGE
public
mixed
FILTER_TOPICAGE
= 'topicAge'
FILTER_VIEW_ACTIVITY
public
mixed
FILTER_VIEW_ACTIVITY
= 'activity'
FILTER_VIEW_CONVERSATION_STREAM
public
mixed
FILTER_VIEW_CONVERSATION_STREAM
= 'conversation_stream'
FILTER_VIEW_CONVERSATION_THREAD
public
mixed
FILTER_VIEW_CONVERSATION_THREAD
= 'conversation_thread'
FILTER_VIEW_CONVERSATION_THREAD_SEARCH
public
mixed
FILTER_VIEW_CONVERSATION_THREAD_SEARCH
= 'conversation_thread_search'
FILTER_VIEW_TOPIC
public
mixed
FILTER_VIEW_TOPIC
= 'topic'
IGNORE_CACHE
public
mixed
IGNORE_CACHE
= alse
SEARCH_TYPE_SYSTEM
public
mixed
SEARCH_TYPE_SYSTEM
= ""
SEARCH_TYPE_USER
public
mixed
SEARCH_TYPE_USER
= 1
Properties
$cache_ttl_sec
protected
static mixed
$cache_ttl_sec
$channelCache
protected
mixed
$channelCache
=
ull
$controller
API Controller
protected
string
$controller
$criteria
protected
mixed
$criteria
$db
Database object.
protected
vB_Database
$db
$disabled
Indicates whether the API was disabled
protected
bool
$disabled
= alse
$disableFalseReturnOnly
Contains white listed methods which return a false response when API is disabled in special scenarios like forum closed, password expiry, ip ban and others.
protected
array<string|int, mixed>
$disableFalseReturnOnly
= array()
$disableWhiteList
Contains white listed methods which act as normal when API is disabled no matter of special scenarios like forum closed, password expiry, ip ban and others.
protected
array<string|int, mixed>
$disableWhiteList
= array()
$search_json
protected
mixed
$search_json
$showFilterList
protected
static mixed
$showFilterList
= array(B_Api_Search::FILTER_SHOW_TEXT, B_Api_Search::FILTER_SHOW_GALLERY, B_Api_Search::FILTER_SHOW_VIDEO, B_Api_Search::FILTER_SHOW_LINK, B_Api_Search::FILTER_SHOW_POLL, B_Api_Search::FILTER_SHOW_EVENT)
$allbadwords
private
static mixed
$allbadwords
$badwords
private
static mixed
$badwords
$goodwords
private
static mixed
$goodwords
$instances
private
static mixed
$instances
$instancesRaw
We want API subclasses to access the instances only through getters
private
static array<string|int, mixed>
$instancesRaw
$vb4_input_mappings
private
static mixed
$vb4_input_mappings
= array(
'blog.post_comment' => array('method' => 'vb4_blog.post_comment'),
'blog.post_postcomment' => array('method' => 'vb4_blog.post_postcomment'),
'blog.post_updateblog' => array('method' => 'vb4_blog.post_updateblog'),
'blog.post_newblog' => array('method' => 'vb4_blog.post_newblog'),
'blog.post_editblog' => array('method' => 'vb4_blog.post_editblog'),
'blog_list' => array('method' => 'vb4_blog.bloglist'),
'api_init' => array('method' => 'api.init'),
'api_cmssectionlist' => array('method' => 'Vb4_Cms.sectionlist'),
'api_cmscategorylist' => array('method' => 'Vb4_Cms.categorylist'),
/*
// These can no longer be mapped directly to vB_Api_User::login/logout
// due to additional processing of devicetoken that may be required
// for mapi calls.
'login_login' => array(
'method' => 'user.login',
'request_mappings' => array(
'vb_login_username' => 'username',
'vb_login_password' => 'password',
'vb_login_md5password' => 'md5password',
'vb_login_md5password_utf' => 'md5passwordutf'
)
),
'login_logout' => array(
'method' => 'user.logout'
),
*/
'get_vbfromfacebook' => array('method' => 'vb4_facebook.getVbfromfacebook'),
)
$wrappers
private
static mixed
$wrappers
Methods
__serialize()
public
__serialize() : mixed
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —callNamed()
Call the given api function by name with a named arguments list.
public
callNamed() : The
Used primarily to translate REST requests into API calls.
Return values
The —return of the method or an error if the method doesn't exist, or is static, a constructor or destructor, or otherwise shouldn't be callable as and API method. It is also an error if the value of a paramater is not provided and that parameter doesn't have a default value.
checkApiState()
This method checks whether the API method is enabled.
public
checkApiState(mixed $method) : mixed
For extensions check make sure $controller property is already set.
Parameters
- $method : mixed
Return values
mixed —clearCache()
Clears all previously loaded API objects.
public
static clearCache() : mixed
Intended for use in tests where the loading pattern can cause issues with objects that cache thier own data.
Return values
mixed —get_all_bad_words()
public
static get_all_bad_words() : mixed
Return values
mixed —get_bad_words()
public
static get_bad_words() : mixed
Return values
mixed —get_good_words()
public
static get_good_words() : mixed
Return values
mixed —getApiClassName()
public
static getApiClassName(mixed $controller) : mixed
Parameters
- $controller : mixed
Return values
mixed —getCacheTTL()
Returns the cache ttl in seconds
public
static getCacheTTL() : int
Return values
int —time in seconds
getChannels()
Returns the Channel structure
public
getChannels([mixed $flat = false ][, mixed $queryOptions = array('exclude_categories' => false, 'include_protected' => false, 'exclude_subtrees' => array()) ][, mixed $skipcache = false ], mixed $topLevelChannel) : array<string|int, mixed>
Parameters
- $flat : mixed = false
- $queryOptions : mixed = array('exclude_categories' => false, 'include_protected' => false, 'exclude_subtrees' => array())
- $skipcache : mixed = false
- $topLevelChannel : mixed
Return values
array<string|int, mixed> —channel structure
getChannelTopics()
Very similar to getInitialResults(), but meant for use by channeldisplay template & activity/get requests.
public
getChannelTopics(string|array<string|int, mixed> $search_json[, int $perpage = false ][, int $pagenumber = false ][, bool $skipCount = false ]) : array<string|int, mixed>
Handles pagination differently and skips two-pass cache.
Parameters
- $search_json : string|array<string|int, mixed>
-
list of parameters that can be encoded in a json string
- $perpage : int = false
-
pagination - the number of results per page
- $pagenumber : int = false
-
pagination - the page number
- $skipCount : bool = false
Return values
array<string|int, mixed> —results array of node information for $pagenumber totalcount integer total (not just $pagenumber) number of topics
getForumChannels()
public
getForumChannels([mixed $flat = false ][, mixed $queryOptions = array('exclude_categories' => false) ][, mixed $skipcache = false ]) : mixed
Parameters
- $flat : mixed = false
- $queryOptions : mixed = array('exclude_categories' => false)
- $skipcache : mixed = false
Tags
Return values
mixed —getInfo()
public
getInfo(mixed $resultId) : mixed
Parameters
- $resultId : mixed
Return values
mixed —getInitialNodes()
Search for nodeids and returns the resultid as well as the page value
public
getInitialNodes(string|array<string|int, mixed>|object $search_json[, int $perpage = false ][, int $pagenumber = false ][, mixed $getStarterInfo = false ]) : array<string|int, mixed>
(avoids having to make a call for the resultid and immediately make another to fetch the page value)
Parameters
- $search_json : string|array<string|int, mixed>|object
-
list of parameters that can be encoded in a json string
- $perpage : int = false
-
pagination - the number of results per page
- $pagenumber : int = false
-
pagination - the page number
- $getStarterInfo : mixed = false
Return values
array<string|int, mixed> —node_ids
getInitialResults()
Search for nodes and returns the resultid as well as the page value
public
getInitialResults(string|array<string|int, mixed>|object $search_json[, int $perpage = false ][, int $pagenumber = false ][, bool $getStarterInfo = false ], int $searchType) : array<string|int, mixed>
(avoids having to make a call for the resultid and immediately make another to fetch the page value)
Parameters
- $search_json : string|array<string|int, mixed>|object
-
list of parameters that can be encoded in a json string
- $perpage : int = false
-
pagination - the number of results per page
- $pagenumber : int = false
-
pagination - the page number
- $getStarterInfo : bool = false
- $searchType : int
Return values
array<string|int, mixed> —search_result_structure
getMoreNodes()
Get the node_ids from a search resultId
public
getMoreNodes(int $resultId[, int $perpage = false ][, int $pagenumber = false ]) : array<string|int, mixed>
Parameters
- $resultId : int
-
id of the search result
- $perpage : int = false
-
pagination - the number of results per page
- $pagenumber : int = false
-
pagination - the page number
Return values
array<string|int, mixed> —result structure without node content (only nodeids)
getMoreResults()
Get the nodes from a search resultId
public
getMoreResults(int $resultId[, int $perpage = false ][, int $pagenumber = false ][, mixed $getStarterInfo = false ]) : array<string|int, mixed>
Parameters
- $resultId : int
-
id of the search result
- $perpage : int = false
-
pagination - the number of results per page
- $pagenumber : int = false
-
pagination - the page number
- $getStarterInfo : mixed = false
Return values
array<string|int, mixed> —List of nodes in the resultId
getPageNumber()
Get the page number where the specified node is at on the node list.
public
getPageNumber(int $nodeid, array<string|int, mixed> $starter[, int $perpage = 20 ], int $depth[, string $sort = 'asc' ][, bool $include_starter = true ][, string $type = '' ]) : int
Parameters
- $nodeid : int
-
The node id
- $starter : array<string|int, mixed>
-
The starter array
- $perpage : int = 20
-
The number of nodes per page the node list is using
- $depth : int
-
The depth - 0 means no stopping, otherwise 1= direct child, 2= grandchild, etc
- $sort : string = 'asc'
-
The sort order of the node list, 'asc' or 'desc'
- $include_starter : bool = true
-
The flag to indicate if the starter node should be included in the node list or not
- $type : string = ''
-
The content type filter to use. Must be one of the strings defined in self::$showFilterList
Return values
int —The page number of the specified node. 0 means the node was not found.
getSearchableContentTypes()
public
getSearchableContentTypes() : mixed
Return values
mixed —getSearchResult()
Search for nodes
public
getSearchResult(string|array<string|int, mixed>|object $search_json, int $searchType) : int
Parameters
- $search_json : string|array<string|int, mixed>|object
-
list of parameters that can be encoded in a json string
- $searchType : int
Return values
int —result_id
instance()
Returns an instance of the API object which translates exceptions to an array Use this method for API clients.
public
static instance(string $controller[, bool $refresh_cache = false ]) : vB_Api
Parameters
- $controller : string
-
-- name of the API controller to load
- $refresh_cache : bool = false
-
-- true if we want to force the cache to update with a new api object primarily intended for testing
Return values
vB_Api —instanceInternal()
Returns an instance of the API object which doesn't handle exceptions This should only be used in other API objects, not for clients of the API
public
static instanceInternal(string $controller[, bool $refresh_cache = false ]) : vB_Api
Parameters
- $controller : string
-
-- name of the API controller to load
- $refresh_cache : bool = false
-
-- true if we want to force the cache to update with a new api object primarily intended for testing
Return values
vB_Api —is_index_word()
public
static is_index_word(mixed $word[, mixed $isLower = false ]) : mixed
Parameters
- $word : mixed
- $isLower : mixed = false
Return values
mixed —map_vb4_input_to_vb5()
Returns vb5 api method name.
public
static map_vb4_input_to_vb5(string $method, array<string|int, mixed> &$request) : string
May alter request array.
Parameters
- $method : string
-
-- vb4 method name
- $request : array<string|int, mixed>
-
-- $_REQUEST array for this api request
Return values
string —map_vb5_errors_to_vb4()
Alters the error array in any way necessary to interface correctly with vb4.
public
static map_vb5_errors_to_vb4(string $method, array<string|int, mixed> &$data) : mixed
Parameters
- $method : string
-
-- vb4 method name
- $data : array<string|int, mixed>
-
-- error array from vb5
Return values
mixed —map_vb5_output_to_vb4()
Alters the output array in any way necessary to interface correctly with vb4.
public
static map_vb5_output_to_vb4(string $method, array<string|int, mixed> &$data) : mixed
Parameters
- $method : string
-
-- vb4 method name
- $data : array<string|int, mixed>
-
-- output array from vb5
Return values
mixed —__construct()
protected
__construct() : mixed
Return values
mixed —checkHasAdminPermission()
Determines if the calling user has the given admin permission, and if not throws an exception
protected
checkHasAdminPermission(string|array<string|int, mixed> $adminPermission) : none
Checks for:
- A valid CP Session
- The passed adminpermission.
Parameters
- $adminPermission : string|array<string|int, mixed>
-
The admin permission to check. If an array then the check passes if the user has any of the permissions given.
Tags
Return values
none —checkHasPermission()
Determines if the calling user has the given bitfield permission, and if not, throws a 'no_permission' exception.
protected
checkHasPermission(string $group, string $permission) : none
Parameters
- $group : string
-
The permission group where the permission is located
- $permission : string
-
The permission to check
Tags
Return values
none —checkIsLoggedIn()
Determines if the calling user has the given admin permission, and if not throws an exception
protected
checkIsLoggedIn() : mixed
Return values
mixed —getApiClass()
protected
static getApiClass(mixed $controller[, mixed $errorCheck = true ]) : mixed
Parameters
- $controller : mixed
- $errorCheck : mixed = true
Return values
mixed —getApiClassNameInternal()
protected
static getApiClassNameInternal(mixed $controller) : mixed
Parameters
- $controller : mixed
Return values
mixed —getChannelFromTree()
This takes the channel tree produced by getChannels, finds the specified channel recursively, then returns that channel's sub tree. Used internally by getChannels.
protected
getChannelFromTree(mixed $resultsTree, mixed $topLevelChannel) : mixed
Parameters
- $resultsTree : mixed
- $topLevelChannel : mixed
Return values
mixed —getSearchResultsCriteria()
Search for nodes
protected
getSearchResultsCriteria(vB_Search_Criteria $criteria, mixed $searchType) : int
Parameters
- $criteria : vB_Search_Criteria
-
a criteria object
- $searchType : mixed
Return values
int —result_id
hasAdminPermission()
Determines if the calling user has the given admin permission
protected
hasAdminPermission(string|array<string|int, mixed> $adminPermission) : bool
Useful if you need to know if the calling user but do not care why they do not have that permission. Generally useful if there is a behavior difference between admins and non admins, but the call can be processed for either.
Parameters
- $adminPermission : string|array<string|int, mixed>
-
The admin permission to check. If an array then the check passes if the user has any of the permissions given.
Return values
bool —true if checks pass, false otherwise
inDebugMode()
protected
inDebugMode() : mixed
Return values
mixed —isDisableFalseReturnOnly()
Checks if method returns false response only when API is disabled.
protected
isDisableFalseReturnOnly(mixed $method) : bool
Parameters
- $method : mixed
Return values
bool —Indicates whether method returns false response only.
isWhiteListed()
Checks if method is white listed when API is disabled.
protected
isWhiteListed(mixed $method) : bool
Parameters
- $method : mixed
Return values
bool —Indicates whether method is or is not a white list.
setController()
Set controller
protected
setController(mixed $controller) : mixed
Parameters
- $controller : mixed
Return values
mixed —cms_vb4_to_vb5_method_mapping()
private
static cms_vb4_to_vb5_method_mapping(mixed $method, mixed &$request) : mixed
Parameters
- $method : mixed
- $request : mixed
Return values
mixed —computeDateLine()
private
computeDateLine(mixed $date[, mixed $round_to_eod = false ]) : mixed
Parameters
- $date : mixed
- $round_to_eod : mixed = false
Return values
mixed —default_vb4_to_vb5_method_mapping()
private
static default_vb4_to_vb5_method_mapping(mixed $method) : mixed
Parameters
- $method : mixed
Return values
mixed —doFullCountQueryForTopics()
private
doFullCountQueryForTopics(mixed $search_structure, mixed $criteria) : mixed
Parameters
- $search_structure : mixed
- $criteria : mixed
Return values
mixed —flattenTree()
private
flattenTree(mixed $tree, mixed $branchName) : mixed
Parameters
- $tree : mixed
- $branchName : mixed
Return values
mixed —getChannelTopicCount()
private
getChannelTopicCount(mixed $search_structure, mixed $criteria) : mixed
Parameters
- $search_structure : mixed
- $criteria : mixed
Return values
mixed —getIgnoredUsersList()
private
getIgnoredUsersList() : mixed
Return values
mixed —hasAdminPermissionInternal()
Internal function to power the previous cover functions
private
hasAdminPermissionInternal(mixed $adminPermission) : mixed
@param string|array $adminPermission The admin permission to check. If an array
then the check passes if the user has any of the permissions given.
Parameters
- $adminPermission : mixed
Return values
mixed —json2criteria()
private
json2criteria(mixed &$json) : mixed
Parameters
- $json : mixed
Return values
mixed —remove_nulls()
private
static remove_nulls(mixed &$data) : mixed
Parameters
- $data : mixed
Return values
mixed —wrapLoggerIfNeeded()
Wrap the api object with the log wrapper class if needed.
private
static wrapLoggerIfNeeded(mixed $controller, mixed $api_object) : mixed
Parameters
- $controller : mixed
- $api_object : mixed