StaticSeoUrlRepositoryWriter
in package
implements
StaticSeoUrlRepositoryWriterInterface
Class StaticSeoUrlRepositoryWriter
Tags
Interfaces, Classes and Traits
- StaticSeoUrlRepositoryWriterInterface
- Interface StaticSeoUrlRepositoryWriterInterface
Table of Contents
- $db : CI_DB_query_builder
- Query builder.
- $table : string
- Table name
- __construct() : mixed
- StaticSeoUrlRepositoryWriter constructor.
- store() : int
- Inserts a staticSeoUrl to the database.
Properties
$db
Query builder.
protected
CI_DB_query_builder
$db
$table
Table name
protected
string
$table
= 'static_seo_urls'
Methods
__construct()
StaticSeoUrlRepositoryWriter constructor.
public
__construct(CI_DB_query_builder $db) : mixed
Parameters
- $db : CI_DB_query_builder
-
Query builder.
Return values
mixed —store()
Inserts a staticSeoUrl to the database.
public
store(StaticSeoUrlInterface $staticSeoUrl) : int
Parameters
- $staticSeoUrl : StaticSeoUrlInterface
Return values
int —ID of inserted staticSeoUrl or the given staticSeoUrl ID if the staticSeoUrl had an ID already.