class flag_broken in Flag 7.3
Same name and namespace in other branches
- 5 flag.inc \flag_broken
- 6.2 flag.inc \flag_broken
- 6 flag.inc \flag_broken
- 7.2 flag.inc \flag_broken
A dummy flag to be used where the real implementation can't be found.
Hierarchy
- class \flag_flag
- class \flag_broken
Expanded class hierarchy of flag_broken
1 string reference to 'flag_broken'
- flag_add_form_validate in includes/
flag.admin.inc
File
- includes/
flag/ flag_flag.inc, line 1619 - Contains the flag_flag class. Flag type classes use an object oriented style inspired by that of Views 2.
View source
class flag_broken extends flag_flag {
function options_form(&$form) {
drupal_set_message(t("The module providing this flag wasn't found, or this flag type, %type, isn't valid.", array(
'%type' => $this->entity_type,
)), 'error');
$form = array();
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
flag_broken:: |
function |
Provides a form for setting options. Overrides flag_flag:: |
||
flag_flag:: |
property | The entity type this flag works with. | ||
flag_flag:: |
public | property | An associative array containing textual errors that may be created during validation. | |
flag_flag:: |
property | The database ID. | ||
flag_flag:: |
property | Whether this flag state should act as a single toggle to all users. | ||
flag_flag:: |
property | The flag's "machine readable" name. | ||
flag_flag:: |
property | The roles array. This can be populated by fetch_roles() when needed. | ||
flag_flag:: |
property | The human-readable title for this flag. | ||
flag_flag:: |
property | The sub-types, AKA bundles, this flag applies to. | ||
flag_flag:: |
function | Determines whether the user may flag, or unflag, the given entity. | ||
flag_flag:: |
function | Utility function: Checks whether a flag applies to a certain type, and possibly subtype, of entity. | ||
flag_flag:: |
function | Determine access to multiple objects. | ||
flag_flag:: |
function | Returns administrative menu path for carrying out some action. | ||
flag_flag:: |
function | Returns TRUE if the flag applies to the given entity. | 1 | |
flag_flag:: |
function | Returns TRUE if the flag applies to the entity with the given ID. | ||
flag_flag:: |
function | Default constructor. Loads the default options. | ||
flag_flag:: |
function | Deletes a flag from the database. | ||
flag_flag:: |
function | Disable a flag provided by a module. | ||
flag_flag:: |
function | Enable a flag provided by a module. | ||
flag_flag:: |
static | function | Create a complete flag (except an FID) from an array definition. | |
flag_flag:: |
static | function | Another factory method. Returns a new, "empty" flag; e.g., one suitable for the "Add new flag" page. | |
flag_flag:: |
static | function | Creates a flag from a database row. Returns it. | |
flag_flag:: |
function | Fetches, possibly from some cache, an entity this flag works with. | ||
flag_flag:: |
function | Load this flag's role data from permissions. | ||
flag_flag:: |
function | Finds the "default flag" corresponding to this flag. | ||
flag_flag:: |
function | Flags, or unflags, an item. | 1 | |
flag_flag:: |
private | function | Unflag an entity by deleting a Flagging. | |
flag_flag:: |
private | function | Create a new Flagging to flag an entity. | |
flag_flag:: |
private | function | Update a Flagging. | |
flag_flag:: |
function | Update the flag with settings entered in a form. | 1 | |
flag_flag:: |
function | Returns the number of times an item is flagged. | ||
flag_flag:: |
function | Given an entity, returns its ID. Derived classes must implement this. | 1 | |
flag_flag:: |
function | Returns an array of errors set during validation. | ||
flag_flag:: |
function | Similar to is_flagged() excepts it returns the flagging entity. | ||
flag_flag:: |
function | Returns the flagging record. | 2 | |
flag_flag:: |
function | Returns a 'flag action' object. It exists only for the sake of its informative tokens. Currently, it's utilized only for the 'mail' action. | 1 | |
flag_flag:: |
function | Processes a flag label for display. This means language translation and token replacements. | ||
flag_flag:: |
function | Returns the token types this flag understands in labels. These are used for narrowing down the token list shown in the help box to only the relevant ones. | 1 | |
flag_flag:: |
function | Get the link type for this flag. | ||
flag_flag:: |
function | Provides permissions for this flag. | 1 | |
flag_flag:: |
function | Returns objects the action may possibly need. This method should return at least the 'primary' object the action operates on. | 1 | |
flag_flag:: |
function | Options are stored serialized in the database. | ||
flag_flag:: |
function | A convenience method for getting the flag title. | ||
flag_flag:: |
function | Returns the number of items a user has flagged. | ||
flag_flag:: |
function | Returns an array of all actions that are executable with this flag. | ||
flag_flag:: |
function | Returns information needed for Views integration. E.g., the Views table holding the flagged object, its primary key, and various labels. See derived classes for examples. | 1 | |
flag_flag:: |
function | Saves a new flag to the database. Better use save(). | ||
flag_flag:: |
protected | function | Invoke a Rules event in reaction to a flagging or unflagging. | 1 |
flag_flag:: |
function | Returns TRUE if this flag's declared API version is compatible with this module. | ||
flag_flag:: |
function | Determines if a certain user has flagged this object. | ||
flag_flag:: |
function | Construct a new, empty flagging entity object. | ||
flag_flag:: |
function | Declares the options this flag supports, and their default values. | 1 | |
flag_flag:: |
function | Store an object in the flag handler's cache. | ||
flag_flag:: |
function | Replaces tokens in a label. Only the 'global' token context is recognized by default, so derived classes should override this method to add all token contexts they understand. | 1 | |
flag_flag:: |
function | Reverts an overriding flag to its default state. | ||
flag_flag:: |
function | Saves a flag to the database. It is a wrapper around update() and insert(). | ||
flag_flag:: |
function | Determine whether the flag should show a flag link in entity links. | 1 | |
flag_flag:: |
function | Renders a flag/unflag link. | ||
flag_flag:: |
function | Provides an array of possible themes to try for a given flag. | ||
flag_flag:: |
function | Implements access() implemented by each child class. | 1 | |
flag_flag:: |
function | Implements access_multiple() implemented by each child class. | 3 | |
flag_flag:: |
function | Saves an existing flag to the database. Better use save(). | ||
flag_flag:: |
function | Determines whether the user has the permission to use this flag. | ||
flag_flag:: |
function | Returns TRUE if this flag requires anonymous user cookies. | ||
flag_flag:: |
function | Validates this flag's options. | ||
flag_flag:: |
function | Validates that the current flag's access settings are valid. | ||
flag_flag:: |
function | Validates that the current flag's name is valid. | ||
flag_flag:: |
function | Decreases the flag count for an object and clears the static counts cache. | ||
flag_flag:: |
function | Set a cookie for anonymous users to record their flagging. | ||
flag_flag:: |
function | A shortcut function to output the link URL. | ||
flag_flag:: |
function | Increases the flag count for an object and clears the static counts cache. | ||
flag_flag:: |
function | Determines if a certain user has flagged this object. | ||
flag_flag:: |
function | Loads an entity this flag works with. Derived classes must implement this. | 1 | |
flag_flag:: |
function | Remove the cookie for anonymous users to record their unflagging. |