/** * Sets and/or retrieves whether we should use the PHP filter extensions where possible * If a param is passed, it will set the state in addition to returning it * * We use this method of storing in a static class property so that we can access the value outside of class instances * * @param boolean $state optional * @return boolean */ public static function useFilterExt($state = null) { if (isset($state)) { Inspekt::$useFilterExtension = (bool) $state; } return Inspekt::$useFilterExtension; }