The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Interchange6::Schema::Result::Navigation

DESCRIPTION

Navigation is where all navigation, category and static page details are stored. In addition information such as page title can be linked to these records as attributes.

Attribute

Common attribute names for a Navigation records include these examples.

meta_title meta_description meta_keywords head_js head_css

SYNOPSIS

NOTE: with items such as head_css which may contain more than one record you must set the priority of the record. This ensures each record has a unique value and also allows for proper ordering.

    $nav->add_attribute({name => 'head_css', priority => '1'}, '/css/main.css');
    $nav->add_attribute({name => 'head_css', priority => '2'}, '/css/fancymenu.css');

ACCESSORS

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  sequence: 'navigation_navigation_id_seq'
  primary key

uri

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255
  unique constraint

type

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 32

scope

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 32

name

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

description

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 1024

alias

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

parent_id

  data_type: 'integer'
  is_nullable: 1

priority

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

product_count

  data_type: 'integer'
  default_value: 0
  is_nullable: 0

created

  data_type: 'datetime'
  set_on_create: 1
  is_nullable: 0

last_modified

  data_type: 'datetime'
  set_on_create: 1
  set_on_update: 1
  is_nullable: 0

active

  data_type: 'boolean'
  default_value: 1
  is_nullable: 0

METHODS

Attribute methods are provided by the Interchange6::Schema::Base::Attribute class.

siblings_with_self

Similar to the inherited siblings method but also returns the object itself in the result set/list.

INHERITED METHODS

DBIx::Class::Tree::AdjacencyList

RELATIONS

Type: has_many

Related object: Interchange6::Schema::Result::NavigationProduct

products

Type: many_to_many

Accessor to related product results ordered by priority and name.

Type: has_many

Related object: Interchange6::Schema::Result::NavigationAttribute