You are here

abstract class EntityShareMediasAbstract in Entity Share 7

Class EntityShareMediasAbstract.

Hierarchy

Expanded class hierarchy of EntityShareMediasAbstract

File

modules/entity_share_medias/includes/entity_share_medias.inc, line 50
Class for handling Medias.

View source
abstract class EntityShareMediasAbstract {

  /**
   * Field data.
   *
   * @var array
   *   Data of the field.
   */
  protected $fieldData;

  /**
   * Name of the field.
   *
   * @var string
   *   Machine name of the field.
   */
  protected $fieldName;

  /**
   * Type of the field.
   *
   * @var string
   *   Type of the field.
   */
  protected $fieldType;

  /**
   * Entity object.
   *
   * @var object
   *   Entity.
   */
  protected $entity;

  /**
   * Metadatas of the field.
   *
   * @var array
   *   Field info.
   */
  protected $fieldInfo;

  /**
   * Constructor. Initialize properties.
   *
   * @param array $field_data
   *   Datas of the field.
   * @param string $field_name
   *   Name of the field.
   * @param string $field_type
   *   Type of the field.
   * @param object $entity
   *   Entity to export/import.
   * @param array $field_info
   *   Informations o the field.
   */
  public function __construct(array &$field_data, $field_name, $field_type, $entity, array $field_info) {
    $this->fieldData =& $field_data;
    $this->fieldName = $field_name;
    $this->fieldType = $field_type;
    $this->entity = $entity;
    $this->fieldInfo = $field_info;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityShareMediasAbstract::$entity protected property Entity object.
EntityShareMediasAbstract::$fieldData protected property Field data.
EntityShareMediasAbstract::$fieldInfo protected property Metadatas of the field.
EntityShareMediasAbstract::$fieldName protected property Name of the field.
EntityShareMediasAbstract::$fieldType protected property Type of the field.
EntityShareMediasAbstract::__construct public function Constructor. Initialize properties.