1. 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

Discussion in 'XenForo Development Discussions' started by typostudy, May 16, 2013.

  1. typostudy

    typostudy Member

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

    Jeremy XenForo Moderator Staff Member

    The _input is an instance of XenForo_Input which can be found in /library/XenForo/Input.php.
  3. tyteen4a03

    tyteen4a03 Well-Known Member

    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.
  4. typostudy

    typostudy Member

    Got it. Thanks

Share This Page