src/Database/Model/Filterable.php
protected function runFilters($when, $action)
    {
        $when = "_{$when}";
        $filters = static::${$when};

        // Anything to do?
        if (array_key_exists($action, $filters)) {
            foreach ($filters[$action] as $method) {
                $this->{$method}();
            }
        }
    }
protected function runFilters($when, $action)
    {
        $when = "_{$when}";
        $filters = static::${$when};

        // Anything to do?
        if (array_key_exists($action, $filters)) {
            foreach ($filters[$action] as $method) {
                $this->{$method}();
            }
        }
    }
protected function runFilters ( $ when , $ action ) { $ when = "_{$when}" ; $ filters = static :: $ { $ when } ; // Anything to do? if ( array_key_exists ( $ action , $ filters ) ) { foreach ( $ filters [ $ action ] as $ method ) { $ this -> { $ method } ( ) ; } } }
Runs the filters for the specified action.

@param string $action
Runs the filters for the specified action .