添加要关闭的function。

@param String $disabledFunction 指定的要关闭的方法名称。
@return void
507085
public function addDisableFunctions($disabledFunction) {
        if ($this->searchParams->disableFunctions == null) {
            $this->searchParams->disableFunctions = array();
        }

        $this->searchParams->disableFunctions[] = $disabledFunction;
    }
181211
static
	public void putFunction(String name, Function function){
		FunctionRegistry.functions.put(Objects.requireNonNull(name), function);
	}
519396
function enable(string $name) {
        if (!isset($this->_formulaList[$name])) {
            Console::warning("Formula \"$name\" do not exist.");
            return;
        }
        $this->_enableList = $this->_enableList + [$name];
    }
95066
def bind(self, func):
        
        if self.__methods__ is None:
            self.__methods__ = {}
        self.__methods__[func.__name__] = BoundFunction(func)
43574
public function addFunction($functionName, $callback, $timeout = null)
    {
        if (isset($this->functions[$functionName])) {
            throw new \InvalidArgumentException("Function $functionName is already registered");
        }

        $this->functions[$functionName] = array('callback' => $callback);
        if (null !== $timeout) {
            $this->functions[$functionName]['timeout'] = $timeout;
        }

        return $this;
    }
813003
public function setDefaultFunctions()
    {
        $this->setLink() //set link() function
             ->setTwigBaseUrl(); //set baseUrl() function

        foreach ($this->functions as $key => $func) {
            $this->twigEnvironment->addFunction($func);
        }
    }
1133353
def append(self, function, update=True):
        
        self._funcs.append(function)
        self._add_dep(function)
        if update:
            self._update()
657289
private function load_functions() {
		if ( $this->is_theme ) {
			return;
		}
		$functions = $this->define->plugin_dir . DS . 'functions.php';
		if ( is_readable( $functions ) ) {
			/** @noinspection PhpIncludeInspection */
			require_once $functions;
		}
	}
809504
private function _setHidden($f)
    {
        if ($f->getHideInRegister()) {
            $this->_setHidden2($f);
        }
        foreach ($f as $i) {
            if (is_object($i)) {
                $this->_setHidden($i);
            }
        }
    }
1083311
public function registerPHPFunction($function)
    {
        if (is_array($function)) {
            $this->_registered_php_functions = array_unique(
              array_merge($this->_registered_php_functions, $function)
            );
        } else {
            $this->_registered_php_functions[] = $function;
        }
    }
767284
public function addFunctionAuthFunction($type, $functionName, callable $function)
    {

        $this->appendToArrayOrCallForEachAlias($type, function() use ($type, $functionName, $function){
            $this->fnAuthFunctions[$type][$functionName][] = $function;
        }, function($target) use ($functionName, $function){
            $this->addFunctionAuthFunction($target, $functionName, $function);
        });

    }
1047828
function Menu(funct, enabled)
{
	mxEventSource.call(this);
	this.funct = funct;
	this.enabled = (enabled != null) ? enabled : true;
}
105106
public function setCallFunction($callFunction = '')
    {
        $this->callFunction = $callFunction;
        $this->debug->info(__FUNCTION__, 'setCallFunction: ', $this->callFunction);

        return $this;
    }
928537
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            for ($i = 0, $_i = count($params); $i < $_i; $i++) {
                if (self::FUNCTION_KEY == $params[$i]->getName()) {
                    $this->function = (string) $params[$i]->getValue();
                    break;
                }
            }
        }
    }
829030
protected function _isDisabled($key, $disabled)
    {
        if ($disabled === null) {
            return false;
        }
        $strict = !is_numeric($key);

        return in_array((string)$key, $disabled, $strict);
    }
484107
private function doRun($function)
    {
        $raw = $this->execute($function, $this->functions, array_slice(func_get_args(), 1));
        if (
            ($this->autoescape && ! in_array($function, $this->safe, true))
            && (is_array($raw) || is_string($raw) || (is_object($raw) && ! $raw instanceof Extension))
        ) {
            $raw = $this->escaper->escape($raw);
            if (is_object($raw)) {
                $raw = '';
            }
        }

        return is_null($raw) ? '' : $raw;
    }
697745
protected function _isDisabled($key, $disabled)
    {
        if ($disabled === null || $disabled === false) {
            return false;
        }
        if ($disabled === true || is_string($disabled)) {
            return true;
        }
        $strict = !is_numeric($key);

        return in_array((string)$key, $disabled, $strict);
    }