/tg/ Station 13 - Modules - TypesVar Details - Proc Details

libraryconsole

Vars

authorThe author we're searching for
book_idThe current book id we're searching for
can_connectCan we connect to the db?
categoryThe category we're searching for
db_request_cooldownPrevents spamming requests, acts as a second layer of protection against spam
interface_typeInterface name for the ui_interact call for different subtypes.
last_search_hashA hash of the last search we did, prevents spam in a different way then the cooldown
page_contentThe results of our last query
page_countThe the total pages last we checked
params_changedHave the search params changed at all since the last search?
search_pageThe page of our current query
sending_requestAre we currently sending a db request for books?
titleThe current title we're searching for

Procs

convert_ambiguous_inputTakes input that could either be a number, or a string that represents a number and returns a number
prevent_db_spamChecks if the machine is alloweed to make another db request yet. TRUE if so, FALSE otherwise
sanitize_page_inputReturns a santized page input, so converted from num/text to num, and properly maxed

Var Details

author

The author we're searching for

book_id

The current book id we're searching for

can_connect

Can we connect to the db?

category

The category we're searching for

db_request_cooldown

Prevents spamming requests, acts as a second layer of protection against spam

interface_type

Interface name for the ui_interact call for different subtypes.

last_search_hash

A hash of the last search we did, prevents spam in a different way then the cooldown

page_content

The results of our last query

page_count

The the total pages last we checked

params_changed

Have the search params changed at all since the last search?

search_page

The page of our current query

sending_request

Are we currently sending a db request for books?

title

The current title we're searching for

Proc Details

convert_ambiguous_input

Takes input that could either be a number, or a string that represents a number and returns a number

prevent_db_spam

Checks if the machine is alloweed to make another db request yet. TRUE if so, FALSE otherwise

sanitize_page_input

Returns a santized page input, so converted from num/text to num, and properly maxed