You are here

class PanelizerEntityParty in Party 7

Panelizer Entity commerce_booking_ticket plugin class.

Handles commerce_booking_ticket specific functionality for Panelizer.

Hierarchy

Expanded class hierarchy of PanelizerEntityParty

1 string reference to 'PanelizerEntityParty'
party.inc in plugins/entity/party.inc

File

plugins/entity/PanelizerEntityParty.class.php, line 12
Class for the Panelizer commerce_booking_ticket entity plugin.

View source
class PanelizerEntityParty extends PanelizerEntityDefault {

  /**
   * True if the entity supports revisions.
   */
  public $supports_revisions = FALSE;
  public $entity_admin_root = 'admin/community/party';

  // No bundle support so we hardcode the default bundle.
  public $entity_admin_bundle = 'party';
  public $views_table = 'party';
  public $uses_page_manager = FALSE;

  /**
   * Determine if the entity allows revisions.
   */
  public function entity_allows_revisions($entity) {
    $retval[0] = $this->supports_revisions;
    $retval[1] = user_access('administer crm settings');
    return $retval;
  }

  /**
   * Implements PanelizerEntityDefault::entity_access().
   */
  public function entity_access($op, $entity) {
    return entity_access($op, 'party', $entity);
  }

  /**
   * Implements PanelizerEntityDefault::entity_save().
   */
  public function entity_save($entity) {
    return entity_save('party', $entity);
  }

  /**
   * Overrides PanelizerEntityDefault::preprocess_panelizer_view_mode().
   */
  public function preprocess_panelizer_view_mode(&$vars, $entity, $element, $panelizer, $info) {
    $panelizer->link_to_entity = FALSE;
    parent::preprocess_panelizer_view_mode($vars, $entity, $element, $panelizer, $info);
  }

  /**
   * Overrides PanelizerEntityDefault::hook_entity_insert().
   *
   * Do nothing!
   */
  public function hook_entity_insert($entity) {
  }

  /**
   * Overrides PanelizerEntityDefault::hook_entity_insert().
   *
   * Do nothing!
   */
  public function hook_entity_update($entity) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PanelizerEntityParty::$entity_admin_bundle public property
PanelizerEntityParty::$entity_admin_root public property
PanelizerEntityParty::$supports_revisions public property True if the entity supports revisions.
PanelizerEntityParty::$uses_page_manager public property
PanelizerEntityParty::$views_table public property
PanelizerEntityParty::entity_access public function Implements PanelizerEntityDefault::entity_access().
PanelizerEntityParty::entity_allows_revisions public function Determine if the entity allows revisions.
PanelizerEntityParty::entity_save public function Implements PanelizerEntityDefault::entity_save().
PanelizerEntityParty::hook_entity_insert public function Overrides PanelizerEntityDefault::hook_entity_insert().
PanelizerEntityParty::hook_entity_update public function Overrides PanelizerEntityDefault::hook_entity_insert().
PanelizerEntityParty::preprocess_panelizer_view_mode public function Overrides PanelizerEntityDefault::preprocess_panelizer_view_mode().