class AdContent extends Model

广告内容

Traits

对 filter 的封装, 进行页面返回

Filterable

Constants

STATUS_YES

STATUS_NO

ACTION_HUNTER_CENTER

ACTION_H5_LINK

ACTION_NO_CLICK

TOPIC

Properties

protected $table
protected $fillable
int $id id
string $title 广告标题
int $place_id 广告位ID
string $url 链接地址
string $introduce 广告的介绍
string|null $end_at 结束时间
string|null $start_at 开始时间
string $note 备注
string $text_name 文字广告名称
string $text_url 文字URL
string $text_title 文字广告title标题
string $text_style 文字广告的颜色
string $image_src 图片广告的图片地址
string $image_url 图片广告链接地址
string $flash_src flash地址
string $flash_url flash链接地址
string $action 动作
string $action_value 动作值
int $flash_loop flash循环次数
int $list_order 排序
int $status

0: 不显示, 1:显示

Carbon|null $created_at 创建时间
Carbon|null $updated_at 修改时间

Methods

mixed
scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

static JsonResponse
paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

static array|string
kvStatus(null $key = null)

显示状态

static array|string
kvAction(null $key = null)

动作

static AdContent
filter(mixed $input, mixed $filter)

No description

static AdContent
pageFilter(PageInfo $pageInfo)

No description

static AdContent
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static AdContent
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static AdContent
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

static AdContent
whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

static AdContent
whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Details

in FilterTrait at line 26
mixed scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

Parameters

Builder $query 查询条件
PageInfo $pageInfo 分页

Return Value

mixed

in FilterTrait at line 39
static JsonResponse paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

Parameters

Model $Db 数据对象
string|Closure $resource 资源
array $append 增加

Return Value

JsonResponse

at line 87
static array|string kvStatus(null $key = null)

显示状态

Parameters

null $key key

Return Value

array|string

at line 102
static array|string kvAction(null $key = null)

动作

Parameters

null $key key

Return Value

array|string

at line 45
static AdContent filter(mixed $input, mixed $filter)

No description

Parameters

mixed $input
mixed $filter

Return Value

AdContent

at line 45
static AdContent pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

AdContent

at line 45
static AdContent paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

AdContent

at line 45
static AdContent simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

AdContent

at line 45
static AdContent whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdContent

at line 45
static AdContent whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdContent

at line 45
static AdContent whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdContent