You are here

abstract class fb_social_default in Facebook social plugins integration 7.2

Same name and namespace in other branches
  1. 6.2 plugins/boxes/fb_social_default.inc \fb_social_default

@file fb_social_comments.inc

Base class for fb_social boxes

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
boxes_box::$boxes static property
boxes_box::$delta public property
boxes_box::$description public property
boxes_box::$export_type public property
boxes_box::$new public property
boxes_box::$options public property
boxes_box::$plugin_key public property
boxes_box::$title public property
boxes_box::cache_setting 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::delete public function Delete a box.
boxes_box::factory public static function Instantiate, populate and return a box object.
boxes_box::load public static function Load existing box by its unique identifier $delta.
boxes_box::reset public static function Reset the boxes cache.
boxes_box::save public function Save a box.
boxes_box::use_multistep_create public function Declare if the box should use a multistep form for the create form.
boxes_box::__construct protected function Create a new box.
fb_social_default::options_defaults public function Implementation of boxes_content::options_defaults(). Overrides boxes_box::options_defaults 9
fb_social_default::options_form public function Implementation of boxes_content::options_form(). Overrides boxes_box::options_form 9
fb_social_default::render public function Implementation of boxes_content::render(). Overrides boxes_box::render 9