abstract class fb_social_default in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/boxes/fb_social_default.inc \fb_social_default
@file fb_social_comments.inc
Base class for fb_social boxes
Hierarchy
- class \boxes_box
- class \fb_social_default
Expanded class hierarchy of fb_social_default
1 string reference to 'fb_social_default'
- fb_social_boxes_plugins in ./
fb_social.module - Implementation of hook_boxes_plugins().
File
- plugins/
boxes/ fb_social_default.inc, line 8 - fb_social_comments.inc
View source
abstract class fb_social_default extends boxes_box {
/**
* Implementation of boxes_content::options_defaults().
*/
public function options_defaults() {
return fb_social_fb_plugin_defaults($this->fb_plugin_name);
}
/**
* Implementation of boxes_content::options_form().
*/
public function options_form(&$form_state) {
$fieldset = array(
'#type' => 'fieldset',
'#title' => t('Facebook plugin attributes'),
'#collapsible' => TRUE,
);
return $fieldset + ($form = fb_social_fb_plugin_fb_settings_form($this->fb_plugin_name, $this->options));
}
/**
* Implementation of boxes_content::render().
*/
public function render() {
$title = isset($this->title) ? check_plain($this->title) : NULL;
$block['title'] = $title;
$block['subject'] = $title;
$block['delta'] = $this->delta;
$block['content'] = fb_social_box_view($this);
return $block;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
boxes_box:: |
static | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | function | Returns the block cache settings for this box. Subclasses can override this to perform more intricate operations around deciding the cache settings of the specific box instance. | |
boxes_box:: |
public | function | Delete a box. | |
boxes_box:: |
public static | function | Instantiate, populate and return a box object. | |
boxes_box:: |
public static | function | Load existing box by its unique identifier $delta. | |
boxes_box:: |
public static | function | Reset the boxes cache. | |
boxes_box:: |
public | function | Save a box. | |
boxes_box:: |
public | function | Declare if the box should use a multistep form for the create form. | |
boxes_box:: |
protected | function | Create a new box. | |
fb_social_default:: |
public | function |
Implementation of boxes_content::options_defaults(). Overrides boxes_box:: |
9 |
fb_social_default:: |
public | function |
Implementation of boxes_content::options_form(). Overrides boxes_box:: |
9 |
fb_social_default:: |
public | function |
Implementation of boxes_content::render(). Overrides boxes_box:: |
9 |