Class SliderAssignmentRepository
category |
System |
---|---|
package |
Slider |
subpackage |
Repositories |
__construct(\CI_DB_query_builder $db)
\CI_DB_query_builder
Query builder.
_validateEntityType(\NonEmptyStringType $entityType)
Throws |
|
---|
\NonEmptyStringType
deleteByEntityTypeAndEntityId(\NonEmptyStringType $entityType, \IdType $entityId) : \SliderAssignmentRepositoryInterface
Throws |
|
---|
\NonEmptyStringType
\IdType
\SliderAssignmentRepositoryInterface
Same instance for method chaining.
deleteBySliderId(\IdType $sliderId) : \SliderAssignmentRepositoryInterface
\IdType
\SliderAssignmentRepositoryInterface
Same instance for method chaining.
findAssignedSliderIdForEntityTypeAndEntityId(\NonEmptyStringType $entityType, \IdType $entityId) : integer|null
Throws |
|
---|
\NonEmptyStringType
\IdType
integer|null
Returns the ID of the slider which is assigned for the given content id or null if no record was found.
store(\IdType $sliderId, \NonEmptyStringType $entityType, \IdType $entityId) : \SliderAssignmentRepositoryInterface
Throws |
|
---|
\IdType
\NonEmptyStringType
\IdType
\SliderAssignmentRepositoryInterface
Same instance for method chaining.
table : string
var |
---|
string
db : \CI_DB_query_builder
var |
---|
\CI_DB_query_builder