Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • Accounts
  • Actions
  • ApiKeys
  • Backup
  • CalendarEvents
  • ClientGroups
  • Clients
  • Companies
  • Contacts
  • Countries
  • Coupons
  • CouponTerms
  • CronTasks
  • Currencies
  • EmailGroups
  • Emails
  • EmailVerifications
  • Encryption
  • GatewayManager
  • Invoices
  • InvoiceTemplateManager
  • Languages
  • Logs
  • Marketplace
  • MessageGroups
  • Messages
  • MessengerManager
  • ModuleClientMeta
  • ModuleManager
  • ModuleTypes
  • Navigation
  • PackageGroups
  • PackageOptionGroups
  • PackageOptions
  • Packages
  • Payments
  • Permissions
  • PluginManager
  • Pricings
  • ReportManager
  • ServiceChanges
  • ServiceInvoices
  • Services
  • Settings
  • Staff
  • StaffGroups
  • States
  • SystemEvents
  • Taxes
  • Themes
  • Transactions
  • Users
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class ModuleTypes

Module Types Management

Model
Extended by AppModel uses Blesta\Core\Util\Common\Traits\Container
Extended by ModuleTypes
Package: blesta\app\models
Copyright: Copyright (c) 2020, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at app/models/module_types.php
Methods summary
public
# __construct( )

Initialize ModuleTypes

Initialize ModuleTypes

Overrides

AppModel::__construct()
public stdClass
# get( integer $type_id )

Fetches a single module type

Fetches a single module type

Parameters

$type_id
The ID of the module type to fetch

Returns

stdClass
A class containing the id and name of the module type
public stdClass
# getByName( string $name )

Fetches a single module type by it's name

Fetches a single module type by it's name

Parameters

$name
The name of the module type to fetch

Returns

stdClass
A class containing the id and name of the module type
public array
# getAll( string $sort_by = 'name', string $order = 'asc' )

Fetches all the module types available in the system

Fetches all the module types available in the system

Parameters

$sort_by
The field to sort by
$order
The direction to order results

Returns

array
A numerically indexed array containing the module types
public array
# getList( )

Returns a list of all module types on the system

Returns a list of all module types on the system

Returns

array
A list of all module types
public integer
# add( array $vars )

Adds a new module type to the system

Adds a new module type to the system

Parameters

$vars

An array of module type data including:

  • name The name of the new module type

Returns

integer
The ID of the module type, void on error
public
# delete( integer $type_id )

Deletes a module type

Deletes a module type

Parameters

$type_id
The ID of the module type to delete
public
# deleteByName( string $name )

Deletes a module type by it's name

Deletes a module type by it's name

Parameters

$name
The module type name to delete
public
# edit( integer $type_id, array $vars )

Updates an existing module type

Updates an existing module type

Parameters

$type_id
The id of the module type to update
$vars

An array of module type data including:

  • name The name of the new module type
public array
# getDefaultTypes( )

Returns a list of default module types

Returns a list of default module types

Returns

array
A list of default module types
Methods inherited from AppModel
_(), boolToInt(), currencyToDecimal(), dateToUtc(), errors(), getPerPage(), ifSet(), loadCrypto(), setDefaultIfEmpty(), setPerPage(), setRulesIfSet(), strToBool(), systemDecrypt(), systemEncrypt(), systemHash(), truncateDecimal(), validateExists(), validateStateCountry()
Methods used from Blesta\Core\Util\Common\Traits\Container
getFromContainer()
Properties inherited from AppModel
$logger, $replacement_keys
Blesta API documentation generated by ApiGen