trying to understand filter function

typostudy

Member
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?
 
The _input is an instance of XenForo_Input which can be found in /library/XenForo/Input.php.
 
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.
 
Back
Top Bottom