public function sbo__relationship::elementInfo

3.x sbo__relationship.inc public sbo__relationship::elementInfo()

Overrides TripalField::elementInfo

See also

TripalField::elements()

File

tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship.inc, line 77

Class

sbo__relationship

Code

public function elementInfo() {
  $field_term = $this->getFieldTermID();

  return array(
    $field_term => array(
      'operations' => array('eq', 'contains', 'starts'),
      'sortable' => FALSE,
      'searchable' => FALSE,
      'type' => 'xs:complexType',
      'readonly' => FALSE,
      'elements' => array(
        'SIO:000493' => array(
          'searchable' => FALSE,
          'name' => 'relationship_clause',
          'label' => 'Relationship Clause',
          'help' => 'An English phrase describing the relationships.',
          'sortable' => FALSE,
          'type' => 'xs:string',
          'readonly' => TRUE,
          'required' => FALSE,
        ),
        'local:relationship_subject' => array(
          'searchable' => FALSE,
          'name' => 'relationship_subject',
          'operations' => array('eq', 'ne', 'contains', 'starts'),
          'sortable' => FALSE,
          'type' => 'xs:complexType',
          'readonly' => FALSE,
          'required' => TRUE,
          'elements' => array(
            'rdfs:type' => array(
              'name' => 'type',
              'searchable' => TRUE,
              'label' => 'Relationship Subject Type',
              'help' => 'The subject\'s data type in a relationship clause',
              'operations' => array('eq', 'ne', 'contains', 'starts'),
              'sortable' => TRUE,
              'type' => 'xs:string',
              'readonly' => FALSE,
              'required' => TRUE,
            ),
            'schema:name' => array(
              'name' => 'name',
              'searchable' => TRUE,
              'label' => 'Relationship Subject Name',
              'help' => 'The subject\'s name in a relationship clause',
              'operations' => array('eq', 'ne', 'contains', 'starts'),
              'sortable' => TRUE,
              'type' => 'xs:string',
              'readonly' => FALSE,
              'required' => TRUE,
            ),
            'entity' => array(
              'searchable' => FALSE,
              'sortable' => FALSE,
            )
          ),
        ),
        'local:relationship_type' => array(
          'searchable' => TRUE,
          'name' => 'relationship_type',
          'operations' => array('eq', 'ne', 'contains', 'starts'),
          'sortable' => TRUE,
          'type' => 'xs:string',
          'readonly' => FALSE,
          'required' => TRUE,
        ),
        'local:relationship_object' => array(
          'searchable' => FALSE,
          'name' => 'relationship_object',
          'operations' => array('eq', 'ne', 'contains', 'starts'),
          'sortable' => FALSE,
          'type' => 'xs:complexType',
          'readonly' => FALSE,
          'required' => TRUE,
          'elements' => array(
            'rdfs:type' => array(
              'searchable' => TRUE,
              'name' => 'object_type',
              'label' => 'Relationship Object Type',
              'help' => 'The objects\'s data type in a relationship clause',
              'operations' => array('eq', 'ne', 'contains', 'starts'),
              'sortable' => TRUE,
              'type' => 'xs:string',
              'readonly' => FALSE,
              'required' => TRUE,
            ),
            'schema:name' => array(
              'searchable' => TRUE,
              'name' => 'object_name',
              'label' => 'Relationship Object Name',
              'help' => 'The objects\'s name in a relationship clause',
              'operations' => array('eq', 'ne', 'contains', 'starts'),
              'sortable' => TRUE,
              'type' => 'xs:string',
              'readonly' => FALSE,
              'required' => TRUE,
            ),
            'entity' => array(
              'searchable' => FALSE,
              'sortable' => FALSE,
            )
          ),
        ),
      ),
    )
  );
}