在与Nautilus相同的流程中执行的扩展,能够访问对象、方法、和属性。
Extensions execute in the same process as Nautilus and, therefore, have access to objects, methods, and attributes.
这个部分阐述了对象,属性,以及与您的脚本相吻合的方法。
This section explains objects, properties, and ways that you can interact with them in your scripts.
如果属性值与搜索值匹配,那么该方法就成功地找到预期的测试对象,并返回该对象。
If the property value matches the search value, then the method has successfully found the desired test object and returns it.
与其他任何PHPV5对象相似,SDO也拥有一组属性,但与普通PHP V5对象的不同之处在于,SDO只是数据值容器,不能有为之定义的应用方法。
Like any PHP V5 object, an SDO has a set of properties, but unlike a normal PHP V5 object they are just containers for data values and cannot have application methods defined for them.
该接口包含方法定义,通过方法定义,客户机可以获取和设置与数据对象相关联的属性。
This interface includes method definitions that enable clients to get and set the properties associated with the DataObject.
find()方法通过将测试对象的特定属性,与给定的标准相比较以找到一系列的候选对象。
The find() method works by comparing certain properties of the test objects with the given criteria to find a set of candidates.
User对象将是非常基本的:仅仅是一个名称和与Twitter的OAuth实现相关的两个属性,我们将充分利用其直观的授权方法。
The User object will be pretty basic: just a name and two attributes related to Twitter's OAuth implementation, which we'll leverage for its intuitive approach to authorization.
第二组的方法是“突变”方法,他们创建一个新的查询()对象与相关(内部的)属性增强或取代。
The second set of methods is the "mutator" methods, they create a new query() object with the relevant (internal)attribute either augmented or replaced.
与通过所需的方法或属性来重复访问对象本身相比,使用引用对象的变量更有效。
Using a variable that refers to an object is more efficient than repeatedly accessing the object itself through the necessary methods or properties.
与通过所需的方法或属性来重复访问对象本身相比,使用引用对象的变量更有效。
Using a variable that refers to an object is more efficient than repeatedly accessing the object itself through the necessary methods or properties.
应用推荐