You are here

public function DataTable::get in Data 7

Same name and namespace in other branches
  1. 6 includes/DataTable.inc \DataTable::get()

Get a property of the DataTable object.

@todo: use __get()

Parameters

$property: One of 'name', 'title', 'table_schema', 'meta'.

Return value

The unserialized value of the property.

File

includes/DataTable.inc, line 217
Contains class definition for DataTable.

Class

DataTable
Manages data access and manipulation for a single data table. Use data_create_table() or data_get_table() to instantiate an object from this class.

Code

public function get($property) {
  if (in_array($property, array(
    'name',
    'title',
    'table_schema',
    'meta',
    'export_type',
  ))) {
    return $this->{$property};
  }
}