Exemplo n.º 1
0
 private function getRlForHistory($rl)
 {
     try {
         $this->rlpMapper->loadByResourceLocator($rl, 'sulu_io', 'de');
         return false;
     } catch (ResourceLocatorMovedException $ex) {
         return $ex->getNewResourceLocator();
     }
 }
Exemplo n.º 2
0
 public function testLoad()
 {
     //its a delegate
     $result = $this->mapper->loadByResourceLocator('/test', 'default', 'de');
     $this->assertEquals('this-is-a-uuid', $result);
 }
Exemplo n.º 3
0
 /**
  * returns the uuid of referenced content node.
  *
  * @param string $resourceLocator requested RL
  * @param string $webspaceKey     key of portal
  * @param string $languageCode
  * @param string $segmentKey
  *
  * @return string uuid of content node
  */
 public function loadByResourceLocator($resourceLocator, $webspaceKey, $languageCode, $segmentKey = null)
 {
     // delegate to mapper
     return $this->mapper->loadByResourceLocator($resourceLocator, $webspaceKey, $languageCode, $segmentKey);
 }