eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::historizeId PHP Method

historizeId() abstract public method

This method is used by Handler::locationMoved(). Each row is separately historized because future publishing needs to be able to take over history entries safely.
abstract public historizeId ( mixed $id, mixed $link )
$id mixed
$link mixed
    public abstract function historizeId($id, $link);

Usage Example

 /**
  * Marks all entries with given $id as history entries.
  *
  * This method is used by Handler::locationMoved(). Each row is separately historized
  * because future publishing needs to be able to take over history entries safely.
  *
  * @param mixed $id
  * @param mixed $link
  */
 public function historizeId($id, $link)
 {
     try {
         $this->innerGateway->historizeId($id, $link);
     } catch (DBALException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new \RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway::historizeId