You are here

party_activity_type.entity.inc in Party 7

Same filename and directory in other branches
  1. 8.2 modules/party_activity/party_activity_type.entity.inc

Entity and Controller classes for the PArty Activity Type entities

File

modules/party_activity/party_activity_type.entity.inc
View source
<?php

/**
 * @file Entity and Controller classes for the PArty Activity Type entities
 */

/**
 * Entity class for party activity types
 */
class PartyActivityType extends Entity {
  public $type;
  public $label;
  public function __construct($values = array()) {
    parent::__construct($values, 'party_activity_type');
  }

}

/**
 * Controller class for party activity types
 */
class PartyActivityTypeController extends EntityAPIControllerExportable {

  /**
   * Create a Party Activity type
   */
  public function create(array $values = array()) {
    $values += array(
      'id' => '',
      'is_new' => TRUE,
    );
    $activity_type = parent::create($values);
    return $activity_type;
  }

}

Classes

Namesort descending Description
PartyActivityType Entity class for party activity types
PartyActivityTypeController Controller class for party activity types