As you might expect, adding a new rule is a simple matter of creating a rule class and adding an extension to the plug-in.
您可能会想,添加一条新规则,要比创建规则类和向插件添加一个扩展容易。
Perhaps it's a case for duck typing, the principle that it doesn't really matter what an object is, in terms of class and module, but only what it does.
可能这就是ducktyping的一个例子,duck typing所代表的原则是,无论对象属于什么类或者模块,关系都不大,关键在于它做些什么。
Now the task of retrieving all clients participating in an event is simply a matter of writing a finder method in the client home interface, and an SQL query in the helper finder class.
现在,检索所有参与活动的客户的任务只是在Client宿主接口中编写finder方法和在helper finder类中编写SQL查询。
But settling the matter once and for all may require observations from both a new class of ground-based 30-metre telescopes and the orbiting James Webb Space telescope, due to launch in 2013.
不过,解决这个问题一劳永逸可能需要从一个地面30米的望远镜观测的新的阶级和詹姆斯·韦伯太空望远镜的轨道,由于在2013年发射。
A monkey could get higher than 10% in her class, but it was all a matter of whether the monkey wanted to or not.
一只猴子只要每天进课堂,都能得到高于10%的成绩。问题是这只猴子愿不愿意要这个成绩。
I honestly don't know. But as a practical matter, John and Sarah are clearly better than "Loverboy and Lovergirl, " a tandem moniker which an Irish colleague of mine actually agreed to used in class.
说实话不知道,但针对实际生活问题,约翰和萨拉比“Loverboy”(相好男孩)和”Lovergirl”(相好女孩)好得多,这是我的爱尔兰同事曾同意在课堂上利用的“英文名字”。
I honestly don't know. But as a practical matter, John and Sarah are clearly better than "Loverboy and Lovergirl, " a tandem moniker which an Irish colleague of mine actually agreed to used in class.
说实话不知道,但针对实际生活问题,约翰和萨拉比“Loverboy”(相好男孩)和”Lovergirl”(相好女孩)好得多,这是我的爱尔兰同事曾同意在课堂上利用的“英文名字”。
应用推荐