pass bo_client to ember 2.8, adjust for the hack around the aupac-typeahead bug in 2.8 (c.f. https://github.com/aupac/ember-aupac-typeahead/issues/23)
<?php
namespace CorpusParole\Models;
use CorpusParole\Libraries\RdfModel\RdfModelResource;
use CorpusParole\Libraries\Utils;
use JsonSerializable;
use Log;
/**
*/
class TranscriptResource extends WebResource {
private $conformsTo = -1;
protected function doClearMemoizationCache() {
$this->conformsTo = -1;
}
public function getConformsTo() {
if($this->conformsTo === -1) {
$conformsTo = $this->getResource("<http://purl.org/dc/terms/conformsTo>");
$this->conformsTo = is_null($conformsTo)?null:$conformsTo->getUri();
}
return $this->conformsTo;
}
protected function jsonSerializeExtra() {
return [
'conforms-to' => $this->getConformsTo()
];
}
}