• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

trying to understand filter function

#1
I saw many such codes:
Code:
$styleId = $this->_input->filterSingle('style', XenForo_Input::UINT);
Code:
$dialog = $this->_input->filterSingle('dialog', XenForo_Input::STRING);
Questions:
1. where can I see the declaration/definition of _input?
2. where can I see the declaration/definition of filterSingle?
 

tyteen4a03

Well-known member
#3
I saw many such codes:
Code:
$styleId = $this->_input->filterSingle('style', XenForo_Input::UINT);
Code:
$dialog = $this->_input->filterSingle('dialog', XenForo_Input::STRING);
Questions:
1. where can I see the declaration/definition of _input?
2. where can I see the declaration/definition of filterSingle?
As you can see, filterSingle is a function that belongs to the instance _input. By seeing where _input is defined in your parent class (usually Controllers) you should be able to trace classes and functions easily.