private function TripalContentService_v0_1::addDocContentCollectionClass

3.x TripalContentService_v0_1.inc private TripalContentService_v0_1::addDocContentCollectionClass()

Adds the content collection class to the document for this service.

1 call to TripalContentService_v0_1::addDocContentCollectionClass()

File

tripal_ws/includes/TripalWebService/TripalContentService_v0_1.inc, line 1025

Class

TripalContentService_v0_1

Code

private function addDocContentCollectionClass() {
  $details = array(
    'id' => 'vocab:Content_Collection',
    'term' => 'vocab:Content_Collection',
    'title' => 'Content Collection',
  );
  $vocab = tripal_get_vocabulary_details('hydra');
  $properties = array();
  $properties[] = array(
    'type' => $vocab['sw_url'],
    'title' => 'member',
    'description' => "The list of available content types.",
    "required" => null,
    "readonly" => FALSE,
    "writeonly" => FALSE,
  );
  $properties[] = array(
    "type" => $vocab['sw_url'],
    "title" => "totalItems",
    "description" => "The total number of content types.",
    "required" => null,
    "readonly" => FALSE,
    "writeonly" => FALSE
  );
  $properties[] = array(
    "type" => $vocab['sw_url'],
    "title" => "label",
    "description" => "The type content.",
    "required" => null,
    "readonly" => FALSE,
    "writeonly" => FALSE
  );

  $operations = array();
  $operations['GET'] = array(
    'label' => 'Retrieves a collection (a list) of available content types.',
    'type' => '_:content_collection_retrieve',
    'expects' => NULL,
    'returns' => 'vocab:ContentCollection',
  );
  $this->addDocClass($details, $operations, $properties);
}