Rechercher une page de manuel
Jifty::Plugin::Attributes::Mixin::Attributes.3pm
Langue: en
Version: 2009-02-12 (ubuntu - 08/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Jifty::Plugin::Attributes::Mixin::Attributes - Mixin attributesattributes
Returns an AttributeCollection limited to the invoking object.first_attribute name
Returns the first attribute on this object with the given name, or "undef" if none exist.add_attribute PARAMHASH
Adds the given attribute to this object. Returns the new attribute if successful, "undef" otherwise. The following fields must be provided:- name
- The name of the attribute
- description
- A description of the attribute
- content
- The attribute's value
set_attribute PARAMHASH
Sets the given attribute on the object. Note that all existing attributes of that name will be removed. Returns the new attribute or "undef" if one could not be created. The following fields must be provided:- name
- The name of the attribute
- description
- A description of the attribute
- content
- The attribute's value
delete_attribute name
Deletes all attributes of the given name. Returns a true value if all attributes were deleted, a false if any could not be.delete_all_attributes
Deletes all the attributes associated with the object.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre