另外一种选择是编写一个函数,只获取用户选择的插件的直接依赖性清单。
An alternative is to write a function that fetches only the immediate dependency list for a user-selected plug-in.
该插件解析器的实现函数的大部分是有一个简单的返回语句组成的。
Most of this plug-in parser's implementation functions consist of a simple return statement.
然后,在插件中定义的选项和函数将可被组件本身所用。
The options and functions defined in the plug-in will then become available to the component itself.
它还有一个新的代码浏览器插件,用这个插件可以浏览一个文件里的函数、类、变量、属性。
It contains a new CodeBrowser plugin for browsing functions, classes, variables and other attributes of a document.
在开发安全插件时,需要实现DB 2udb调用的标准身份验证函数。
When you develop a security plug-in, you will need to implement the standard authentication functions that DB2 UDB invokes.
如果您决定编写函数而不是方法,我还将向您展示一个样例,介绍如何设置插件架构。
I'd also like to show you an example of how you'd set up your plug-in architecture if you decided to write a function, as opposed to a method.
我们可以编写一个递归函数来遍历这些依赖性,它可以查找某个插件的最新版本(针对在相同的系统中有重复插件的情况)以及它的所有依赖性。
Walk through these dependencies by writing a recursive function that can find the latest version of a plug-in (in case duplicate plug-ins are in the same system) and all its dependencies.
我创建了一些在插件内部调用的函数,以便插件外部的人无法调用它们。
I made the functions I call internally in the plug-in private, so that no one outside of the plug-in can call them.
该步骤给整个插件画上了句号,有效地创建了私有函数和公共函数。
This step added a Closure around the entire plug-in, effectively allowing you to create private functions and public functions.
将该函数传递到插件上下文、数据模型和视图的ID。
This is passed to the context of the plug-in, the data model, and the ID of the view.
例如,StructureBrowser就是一个有用的插件,它用一个可折叠的树来显示函数、类和方法,这样就可以浏览或显示一个大模块中的上下文。
For example, a handy plugin is the Structure Browser, which shows a collapsible tree of functions, classes, and methods that can be used to navigate or show context within a large module.
这个例子插件使用以下API函数
RubyDevelopmentTools (RDT)插件的名称及查找代码的位置已经发生变化,但是基本函数和许可条款在本质上保留不变。
The name of the Ruby Development Tools (RDT) plug-in and where to find the code have changed, but the basic function and licensing terms have remained essentially unchanged.
为确定哪个用户是当前登录进来的用户,DB2调用服务器端身份验证插件API函数db2secGetDefaultLoginContext。
To determine which user is currently logged in, DB2 calls the client-side authentication plug-in API function db2secGetDefaultLoginContext.
最好在这个插件的关键函数中设置一些断点,然后在调试模式下启动LotusSametime,检查它的工作方式。
It's a good idea to set some breakpoints in the key functions in this plug-in and then launch Lotus Sametime in debug mode, to view how it works.
除了前面描述的hook(包括action和filter)之外,另一个修改WordPress行为的插件编写方法是覆盖WordPress函数。
Besides the hooks (actions and filters) described above, another way for a plugin to modify WordPress's behavior is to override WordPress functions.
这个插件包含三个函数、几个shell选项和popd的别名(为每个弹出操作保留目录堆栈)。
The plug-in is composed of three functions, a handful of shell options, and an alias for popd that persists the directory stack with each pop operation.
事实上,WordPress设计了一些让插件重新定义的函数。
In fact, there is a small set of functions that WordPress intends for plugins to redefine.
我们可以利用现有的一些函数来对Eclipse插件的版本进行比较,或者可以基于清单4所示的样例代码编写一个简单的函数来对插件版本进行比较。
You can find some existing functions to compare Eclipse plug-in versions, or you can write a simple function to compare plug-in versions based on the sample code in Listing 4.
除了初始化函数外,还需为服务器、客户机和组插件实现一些插件api。
In addition to the initialization functions, there are several plug-in APIs that you need to implement for the server, client, and group plug-ins.
特定于插件的JSP 的路径通过构造函数传入。
The path to the plug-in specific JSP is passed in through the constructor.
除了通过主题控制颜色和提示符之外,OM Z !还提供了一些插件,这些插件将同类的函数和特性集中在一起。
Beyond thematic treatments of colors and prompts, OMZ! Includes plug-ins that group like functions and features.
将你的PHP函数放入插件文件中,并且激活它。
使用ActionAPI,你的插件可以在这些特殊点执行一个或者多个在插件中编写的PHP函数。
Your plugin can specify that one or more of its PHP functions are executed at these points, using the Action API.
该函数可以是标准的PHP函数,在WordPress核心中定义的函数或者你自己在插件文件中定义的函数。
This can be a standard PHP function, a function present in the WordPress core, or a function defined by you in the plugin file.
这个接口的实现需要一个零参数的构造函数,供actionservlet使用,从而确保插件可以正确创建。
Implementation of this interface requires a zero-argument constructor for use by ActionServlet, to ensure the plug-in is created properly.
这个接口的实现需要一个零参数的构造函数,供actionservlet使用,从而确保插件可以正确创建。
Implementation of this interface requires a zero-argument constructor for use by ActionServlet, to ensure the plug-in is created properly.
应用推荐