1. Home
  2. Docs
  3. Simpods MVC
  4. Tutorials
  5. Models
  6. Admin Models

Admin Models

Backend Models are only loaded for the backend only.

The Default Classes

Hierarchy Model

File Name

mvc-admin-simpods-hierarchy.class.php

Description

This is the class to process data for Simpods Area Categories, also named Simpods Hierarchy.

Example

Copy to Clipboard

Child Theme Override

No

Area Field Model

File Name

pods-fields/popodsfield-simpodsareafield.php

Description

This adds an Area Field for Pods Framework and allows you to save IDs to the field.

Example

Copy to Clipboard

Child Theme Override

No

Cross Admin Model

File Name

mvc-admin-cross-admin.class.php

Description

This is the default class for the whole backend site. You can create some regularly used methods here. An instance is created automatically when a page is loaded. You can use it to access the methods from the General class

Example

Copy to Clipboard

Child Theme Override

Yes

Custom Controllers Model

File Name

mvc-admin-simpods-custom-controllers.class.php

Description

This is for the Simpods Custom Controller to bring custom controllers for the backend.

Example

Copy to Clipboard

Child Theme Override

No

Factory Model

File Name

mvc-admin-factory.class.php

Description

This is a class for storing global/static variables.

Example

Copy to Clipboard

Child Theme Override

Yes

General Model

File Name

mvc-admin-general.class.php

Description

This is the mother. All new backend classes should extend this class. This class is a collection of some regularly used SQL methods.

Example

Copy to Clipboard

Child Theme Override

No

Guest Accounts Model

File Name

mvc-admin-simpods-guest-accounts.class.php

Description

Simpods Guest Accounts allow you to quickly create guest accounts for your potential clients. This backend class will create a “last_login” user-meta when a logged-in user lands on any page.

Example

Copy to Clipboard

Child Theme Override

No

Linked Areas Model

File Name

mvc-admin-simpods-linked-areas.class.php

Description

This is the class to process data for Simpods Linked Areas

Example

Copy to Clipboard

Child Theme Override

No

Parent Cross Admin Model

File Name

mvc-admin-cross-admin.class.php

Description

This is the cross admin class. It is rewritable by theme.

Example

Copy to Clipboard

Child Theme Override

No

Parent Factory Model

File Name

mvc-admin-parent-cross-admin.class.php

Description

This is a parent class for mvc_admin_factory. It auto-loads the classes and carries some global/static variables which can be accessible through MVC_Admin_Factory

Example

Copy to Clipboard

Child Theme Override

No

Pods Model

File Name

mvc-admin-pods.class.php

Description

This is the class Simpods adds some options to Pods Framework

Example

Copy to Clipboard

Child Theme Override

No

Pods Files Model

File Name

mvc-admin-pods-files.class.php

Description

This creates a new field type for Pods Framework, so Simpods can process the uploaded files.

Example

Copy to Clipboard

Child Theme Override

No

Sample Model

File Name

mvc-admin-sample.class.php

Description

This is a sample that developers can copy then modify to create their own models

Example

Copy to Clipboard

Child Theme Override

Yes

Settings Helper Model

File Name

mvc-admin-simpods-settings.class.php

Description

This class will help to create a settings table in Simpods. (Supports Pods Framework for generating fields)

Example

Copy to Clipboard

Child Theme Override

No

User Code Model

File Name

mvc-admin-simpods-user-code.class.php

Description

This is designed to handle user codes such as authorisation codes

Example

Copy to Clipboard

Child Theme Override

No