Translation of "class method" in Chinese
We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
Method-level role based security requires an interface definition for class method.
基于方法级别角色的安全要求为类方法提供接口定义。
The only difference is that a class method is required to take a parameter
唯一的区别是类方法需要带参数
It can also be an array referring to a class method.
它也可以是一个数组名指向一个类的方法。
A filter can be defined as a controller class method.
过滤器可以定义为一个控制器类的方法。
Describe a class method, its arguments, return value, and exceptions
描述一个类的方法,其参数、返回值以及异常:
Function - function or class method name.
函数 - 函数或类的方法名。
You can access this class method directly as follows
可以直接访问类方法
There are two ways to achieve it. First, you can use a class method as validator, and the second way is to create a separate class.
有两种实现方法。第一,你能够使用一个类方法作为验证器,第二种方法创建一个分开的类。
Self is also used in class method, which has a very similar rule. The core concept is how to ensure that the subclasses also return the correct type.
另一个可以使用 Self 的地方是在类方法中,使用起来也十分相似,核心就在于保证子类也能返回恰当的类型。
Then we need to add to our criteria in the Issue::search() model class method. The following highlighted code identifies the change we need to make to this method
然后,我们需要将我们的标准添加到Issue::search()模型类方法。下列高亮代码标识出了我们需要进行的修改:
in PHP coding, we usually need check if the class method exist, if we direct call without check we could get exception. In Yii 2.0 framework, we can also use this way to check model's relation exist.
在PHP编程中我们有时会需要检查类的方法是否存在,如直接调用不存在的方法会报错。在Yii2.0框架中也可以用此方法判断模型是否拥有某一关系(relation)
Similarly, if there is a class method in A, we can call it with typeA as well
这样,要是 A 中有一个类方法时,我们就可以通过 typeA 来对其进行调用了:
We said above, Python concurrency is a disability, But it actually is not thread-safety issue that is crippled...,The security thread had to make do.So, We want to before and after each IO class method calls are thread-safe plus statement, such as
上文我们说了,Python 的并发就是个残废,可是它的线程安全问题倒是一点也不残废……也就是说,线程安全该做还得做。所以,我们要在每一个 IO 类方法调用的前后都加上线程安全语句,比如: