In the change that follows, it stores a reference to the view part instance in a class variable.
在随后进行更改时,将视图部件实例的引用存储到一个类变量中。
Dependency injection can occur in a variety of ways, such as through a setter method or a class variable.
依赖项注入可以通过多种方式进行,例如通过setter方法或类变量。
Dependency injection can occur in a variety of ways, for example, via a setter method or a class variable.
依赖性的引入可以以多种方式出现,例如,通过设置属性值的方法或者类变量。
In our example, the identifier is stored in a static class variable so that it can be accessed from outside if necessary.
在我们的范例之中,标识符存储在静态的类变量之中,这样如有需要就可以从外边访问它了。
The definition is a simple one: The class is Post and extends AppModel, and you should set the class variable $name to post.
定义十分简单:类是Post并扩展 AppModel,并且应当将类变量 $name 设为 post。
To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.
为了使这一点更方便,插件类实现单模式(singletonpattern):它在私有类变量中存储一个自身的引用。
This function iterates as many times as the value of the $indentation class variable, and for each iteration it adds the $indentationValue class variable to $xml, and returns it.
此函数需要迭代的次数与 $indentation类变量值相同,对于每次迭代,它将 $indentationValue 类变量添加到 $xml,并将后者返回。
There are three "types" of comment documentation, which correspond to the element the comment precedes: class, variable, or method.
有三种类型的注释文档,它们对应于位于注释后面的元素:类、变量或者方法。
There are three "types" of comment documentation, which correspond to the element the comment precedes: class, variable, or method.
有三种类型的注释文档,它们对应于位于注释后面的元素:类、变量或者方法。
应用推荐