Airport Guide Documentation

PageCf extends Model
in package
uses HasFactory

Page Custom Fields Model

This model manages custom fields for pages in the CICMS system. It stores custom field definitions, types, values, and labels for extending page functionality with additional data fields.

Table of Contents

Properties

$fillable  : array<string|int, string>
The attributes that are mass assignable.

Methods

__construct()  : void
Create a new PageCf model instance.
getCFBySlug()  : Collection
Get custom fields based on the page type slug string.
getCFInfo()  : Collection
Get custom field information based on the page type slug string.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, string> $fillable = ['pcm_slug', 'pcf_name', 'pcf_type', 'pcf_values', 'pcf_values_label', 'created_by', 'updated_by', 'created_at', 'updated_at']

Methods

__construct()

Create a new PageCf model instance.

public __construct() : void

Sets the table name from configuration constants.

getCFBySlug()

Get custom fields based on the page type slug string.

public getCFBySlug(string $pcm_slug) : Collection

This function used to get results based on the page type slug string.

Parameters
$pcm_slug : string

The page type slug

Return values
Collection

Collection of custom fields for the page type

getCFInfo()

Get custom field information based on the page type slug string.

public getCFInfo(string $slug) : Collection

This function used to get results based on the page type slug string.

Parameters
$slug : string

The page type slug

Return values
Collection

Collection of custom field IDs for the page type


        
On this page

Search results