eZ\Publish\Core\Persistence\Legacy\Content\UrlWildcard\Gateway::insertUrlWildcard PHP Méthode

insertUrlWildcard() abstract public méthode

Inserts the given UrlWildcard.
abstract public insertUrlWildcard ( eZ\Publish\SPI\Persistence\Content\UrlWildcard $urlWildcard ) : mixed
$urlWildcard eZ\Publish\SPI\Persistence\Content\UrlWildcard
Résultat mixed UrlWildcard id
    public abstract function insertUrlWildcard(UrlWildcard $urlWildcard);

Usage Example

 /**
  * Inserts the given UrlWildcard.
  *
  * @param \eZ\Publish\SPI\Persistence\Content\UrlWildcard $urlWildcard
  *
  * @return mixed
  */
 public function insertUrlWildcard(UrlWildcard $urlWildcard)
 {
     try {
         return $this->innerGateway->insertUrlWildcard($urlWildcard);
     } 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\UrlWildcard\Gateway::insertUrlWildcard