Welcome Guest, Not a member yet? Register   Sign In
set_allowed_types() in Upload library. Mistery?
#6

[eluser]Ignacio[/eluser]
found it!

Code:
foreach ($defaults as $key => $val)
{
    if (isset($config[$key]))
    {
        $method = 'set_'.$key; //$key = allowed_types = set_allowed_types()
        if (method_exists($this, $method))
        {
            $this->$method($config[$key]);
        }
        else
        {
            $this->$key = $config[$key];
        }            
    }
    else
    {
        $this->$key = $val;
    }
}

Now I get how this work! Thanks!


Messages In This Thread
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-12-2008, 07:15 PM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-12-2008, 10:08 PM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 12:41 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 12:57 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:00 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:01 AM
set_allowed_types() in Upload library. Mistery? - by El Forum - 12-13-2008, 01:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB