return isset($locations[$type]) ? !
empty($locations[$type][$name]) : FALSE;
} /**
* {@inheritdoc}
*/
public function save() { if ($storage =
$this->
getStorage()) { $storage->
save($this);
} else { throw new StringStorageException('The string cannot be saved because its not bound to a storage: ' .
$this->
getString());
} return $this;
} /**
* {@inheritdoc}
*/
public function delete() { if (!
$this->
isNew()) { if ($storage =
$this->
getStorage()) { $storage->
delete($this);
}